Skip to content

Commit adbd33b

Browse files
authored
fix: error display (#2377)
1 parent f741e02 commit adbd33b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/app/_components/CustomInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ const CustomInput = (props) => {
2525
(meta.error === BusinessErrorCodes.NON_DIFFUSIBLE ? (
2626
<Box ml={1}>
2727
<Box sx={{ display: "flex", alignItems: "center" }}>
28-
<Warning sx={{ mr: 1 }} />
29-
Les informations de votre entreprise sont non diffusibles.
28+
<Warning sx={{ mr: fr.spacing("1w") }} />
29+
<Typography sx={{ color: fr.colors.decisions.text.actionHigh.redMarianne.default }}>Les informations de votre entreprise sont non diffusibles.</Typography>
3030
</Box>
3131
<DsfrLink href="mailto:[email protected]?subject=Espace%20pro%20-%20Donnees%20entreprise%20non%20diffusibles" external={true}>
3232
Contacter le support pour en savoir plus
3333
</DsfrLink>
3434
</Box>
3535
) : (
3636
<Box sx={{ display: "flex", alignItems: "center" }}>
37-
<Box sx={{ display: "flex" }} ml={1}>
37+
<Box sx={{ display: "flex", ml: fr.spacing("1w") }}>
3838
<Typography className={fr.cx("fr-message--error")}>{parse(meta.error || "")}</Typography>
3939
{meta.error?.includes("déjà associé") && <DsfrLink href="/espace-pro/authentification">Connexion</DsfrLink>}
4040
</Box>

0 commit comments

Comments
 (0)