Improved key success message layout for mobile, using global 'now' to prevent hydration mismatches.
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user