Improved key success message layout for mobile, using global 'now' to prevent hydration mismatches.

This commit is contained in:
2024-08-31 22:15:39 +02:00
parent 2882bd59e9
commit 6e130dd96e
3 changed files with 29 additions and 16 deletions

View File

@@ -28,6 +28,7 @@ export default async function mainHandler(req, res, next) {
stashes,
primaryStash: stashes.find((stash) => stash.isPrimary),
templates,
unseenNotifications,
} : null,
env: {
theme: req.cookies.theme || req.headers['sec-ch-prefers-color-scheme'] || 'light',
@@ -41,7 +42,7 @@ export default async function mainHandler(req, res, next) {
links: config.links,
},
meta: {
unseenNotifications,
now: new Date().toISOString(),
},
};