fix(client): unblock the auth page build

Drop unused HeaderAuthControls/SPACING imports and switch the form-side wrapper from Stack to Box so the polymorphic component prop type-checks.
This commit is contained in:
gorkem-bwl authored and Alex Holliday committed 2026-04-27 10:52:24 -07:00
1 parent 6b71daa88e
commit ed79ae0920
1 file changed
+11 -8
@@ -2,7 +2,7 @@ import Logo from "@/assets/icons/checkmate-icon.svg?react";
import Stack from "@mui/material/Stack"; import Stack from "@mui/material/Stack";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import Link from "@mui/material/Link"; import Link from "@mui/material/Link";
import { LAYOUT, SPACING } from "@/Utils/Theme/constants"; import { LAYOUT } from "@/Utils/Theme/constants";
import { import {
ErrorFallback, ErrorFallback,
EmptyFallback, EmptyFallback,
@@ -12,7 +12,6 @@ import { EmptyState } from "@/Components/design-elements/EmptyState";
import { Breadcrumb } from "@/Components/design-elements/Breadcrumb"; import { Breadcrumb } from "@/Components/design-elements/Breadcrumb";
import { PageHeader } from "@/Components/design-elements/PageHeader"; import { PageHeader } from "@/Components/design-elements/PageHeader";
import CircularProgress from "@mui/material/CircularProgress"; import CircularProgress from "@mui/material/CircularProgress";
import { HeaderAuthControls } from "@/Pages/Auth/components/HeaderAuthControls";
import { LanguageSelector, SwitchTheme } from "@/Components/inputs"; import { LanguageSelector, SwitchTheme } from "@/Components/inputs";
import type { StackProps } from "@mui/material/Stack"; import type { StackProps } from "@mui/material/Stack";
@@ -297,12 +296,16 @@ export const BaseAuthPage = ({
<LanguageSelector /> <LanguageSelector />
<SwitchTheme /> <SwitchTheme />
</Stack> </Stack>
<Stack <Box
component={component} component={component as React.ElementType}
onSubmit={onSubmit} onSubmit={onSubmit}
gap={theme.spacing(LAYOUT.MD)} sx={{
width="100%" display: "flex",
maxWidth={360} flexDirection: "column",
gap: theme.spacing(LAYOUT.MD),
width: "100%",
maxWidth: 360,
}}
> >
<Stack <Stack
direction="row" direction="row"
@@ -339,7 +342,7 @@ export const BaseAuthPage = ({
</Typography> </Typography>
</Stack> </Stack>
{children} {children}
</Stack> </Box>
</Stack> </Stack>
<Stack <Stack
flex={1} flex={1}