Fix TypeScript typecheck errors
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-01-30 15:56:06 +01:00
parent 916b204688
commit b1f9f7cee0
42 changed files with 324 additions and 72 deletions

View File

@@ -9,6 +9,7 @@ import { useAuth } from '../auth/context';
import { ADMIN_DEFAULT_AFTER_LOGIN_PATH } from '../constants';
import { decodeReturnTo, resolveReturnTarget } from '../lib/returnTo';
import { useAdminTheme } from './theme';
import { useDocumentTitle } from './hooks/useDocumentTitle';
export default function AuthCallbackPage(): React.ReactElement {
const { status } = useAuth();
@@ -21,6 +22,8 @@ export default function AuthCallbackPage(): React.ReactElement {
paddingBottom: 'calc(env(safe-area-inset-bottom, 0px) + 16px)',
};
useDocumentTitle(t('processing.title', 'Signing you in …'));
const searchParams = React.useMemo(() => new URLSearchParams(window.location.search), []);
const rawReturnTo = searchParams.get('return_to');