fix(client): restyle the register page setup notice
Drop the default MUI info-blue alert in favour of a neutral panel: theme-driven action.hover background, divider border, secondary text colour and no icon. Reads as a quiet aside instead of a status message.
This commit is contained in:
1 parent
447e1f7fe5
commit
ddfcb09a12
1 file changed
+17
-1
@@ -95,7 +95,23 @@ const RegisterPage = () => {
|
|||||||
title={t("pages.auth.register.title")}
|
title={t("pages.auth.register.title")}
|
||||||
subtitle={t("pages.auth.register.subtitle")}
|
subtitle={t("pages.auth.register.subtitle")}
|
||||||
>
|
>
|
||||||
{!token && <Alert severity="info">{t("pages.auth.register.setupNotice")}</Alert>}
|
{!token && (
|
||||||
|
<Alert
|
||||||
|
severity="info"
|
||||||
|
icon={false}
|
||||||
|
sx={(theme) => ({
|
||||||
|
fontSize: 13,
|
||||||
|
lineHeight: 1.55,
|
||||||
|
color: theme.palette.text.secondary,
|
||||||
|
backgroundColor: theme.palette.action.hover,
|
||||||
|
border: `1px solid ${theme.palette.divider}`,
|
||||||
|
borderRadius: 1,
|
||||||
|
"& .MuiAlert-message": { padding: 0 },
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
{t("pages.auth.register.setupNotice")}
|
||||||
|
</Alert>
|
||||||
|
)}
|
||||||
<Controller
|
<Controller
|
||||||
name="firstName"
|
name="firstName"
|
||||||
control={control}
|
control={control}
|
||||||
|
|||||||
Reference in new issue
Block a user