Skip to content

Commit cf1379d

Browse files
committed
feat: add server status badge to login page
- Provide user-friendly message for server connection issues
1 parent 56b2359 commit cf1379d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/auth/login/login.page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box, Group, Loader, Stack, Text, Title } from '@mantine/core'
1+
import { Badge, Box, Group, Loader, Stack, Text, Title } from '@mantine/core'
22

33
import { useGetAuthStatus } from '@shared/api/hooks/auth/auth.query.hooks'
44
import { RegisterFormFeature } from '@features/auth/register-form'
@@ -34,7 +34,11 @@ export const LoginPage = () => {
3434
</Title>
3535
</Group>
3636

37-
{!authStatus && <></>}
37+
{!authStatus && (
38+
<Badge color="cyan" mt={10} size="lg" variant="filled">
39+
Server is not responding. Check logs.
40+
</Badge>
41+
)}
3842

3943
{authStatus?.isLoginAllowed && !authStatus?.isRegisterAllowed && (
4044
<Box maw={800} w={{ base: 440, sm: 500, md: 500 }}>

0 commit comments

Comments
 (0)