fix: login error messages not rendering properly

mentioneverything
izzy 2025-05-09 08:42:58 +01:00
parent f9c2fcec56
commit 3d41a016cf
No known key found for this signature in database
3 changed files with 8 additions and 7 deletions

2
.env
View File

@ -1,5 +1,5 @@
# VITE_API_URL=https://api.revolt.chat
# VITE_API_URL=https://app.revolt.chat/api
# VITE_API_URL=http://local.revolt.chat:8000
VITE_API_URL=https://revolt.chat/api
VITE_API_URL=https://app.revolt.chat/api
VITE_THEMES_URL=https://themes.revolt.chat

2
external/lang vendored

@ -1 +1 @@
Subproject commit 4ec2f99855825743f65eabd715ec77f61c28c5d8
Subproject commit 8513c63ce75f489d9cd97164539726c7a4e16cec

View File

@ -202,11 +202,12 @@ export const Form = observer(({ page, callback }: Props) => {
/>
)}
{error && (
<Category>
<I18nError error={error}>
<Text id={`login.error.${page}`} />
</I18nError>
</Category>
<p style={{ fontSize: "0.8em" }}>
<Text id={`login.error.${page}`} /> &middot;{" "}
<span style={{ color: "var(--error)" }}>
<Text id={`error.${error}`} children={error} />
</span>
</p>
)}
<Button>
<Text