Migrate guest v2 achievements and refresh share page
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-05 16:46:15 +01:00
parent fa630e335d
commit 4e0d156065
22 changed files with 1142 additions and 1902 deletions

View File

@@ -18,18 +18,6 @@ if (shouldEnableGuestDemoMode()) {
enableGuestDemoMode();
}
const rootEl = document.getElementById('root')!;
const isShareRoute = typeof window !== 'undefined' && window.location.pathname.startsWith('/share/');
const shareRoot = async () => {
const { SharedPhotoStandalone } = await import('./pages/SharedPhotoPage');
createRoot(rootEl).render(
<Sentry.ErrorBoundary fallback={<GuestFallback message="Dieses Foto kann gerade nicht geladen werden." />}>
<React.StrictMode>
<SharedPhotoStandalone />
</React.StrictMode>
</Sentry.ErrorBoundary>
);
};
const appRoot = async () => {
const { RouterProvider } = await import('react-router-dom');
@@ -68,12 +56,6 @@ const appRoot = async () => {
);
};
if (isShareRoute) {
shareRoot().catch(() => {
createRoot(rootEl).render(<GuestFallback message="Dieses Foto kann gerade nicht geladen werden." />);
});
} else {
appRoot().catch(() => {
createRoot(rootEl).render(<GuestFallback message="Erlebnisse können nicht geladen werden." />);
});
}
appRoot().catch(() => {
createRoot(rootEl).render(<GuestFallback message="Erlebnisse können nicht geladen werden." />);
});