Merge remote-tracking branch 'theatischbein/feat_optional_require_login' into require-login

This commit is contained in:
binwiederhier
2025-08-24 13:34:22 -04:00
10 changed files with 39 additions and 13 deletions
+16 -10
View File
@@ -65,16 +65,22 @@ const maybeUpdateAccountSettings = async (payload) => {
}
};
const Preferences = () => (
<Container maxWidth="md" sx={{ marginTop: 3, marginBottom: 3 }}>
<Stack spacing={3}>
<Notifications />
<Reservations />
<Users />
<Appearance />
</Stack>
</Container>
);
const Preferences = () => {
if (!session.exists() or !config.requireLogin) {
window.location.href = routes.app;
return <></>;
}
return (
<Container maxWidth="md" sx={{ marginTop: 3, marginBottom: 3 }}>
<Stack spacing={3}>
<Notifications />
<Reservations />
<Users />
<Appearance />
</Stack>
</Container>
);
};
const Notifications = () => {
const { t } = useTranslation();