fix: login error messages not rendering properly

pull/1102/head
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://api.revolt.chat
# VITE_API_URL=https://app.revolt.chat/api # VITE_API_URL=https://app.revolt.chat/api
# VITE_API_URL=http://local.revolt.chat:8000 # 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 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 && ( {error && (
<Category> <p style={{ fontSize: "0.8em" }}>
<I18nError error={error}> <Text id={`login.error.${page}`} /> &middot;{" "}
<Text id={`login.error.${page}`} /> <span style={{ color: "var(--error)" }}>
</I18nError> <Text id={`error.${error}`} children={error} />
</Category> </span>
</p>
)} )}
<Button> <Button>
<Text <Text