mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-11 05:09:36 +02:00
add reload notification to login screen
This commit is contained in:
parent
fd31a44224
commit
850e781dee
@ -1,5 +1,6 @@
|
||||
import { Avatar, Box, Flex, Heading } from "@chakra-ui/react";
|
||||
import { Avatar, Flex, Heading } from "@chakra-ui/react";
|
||||
import { Navigate, Outlet, useLocation } from "react-router-dom";
|
||||
import { ReloadPrompt } from "../../components/reload-prompt";
|
||||
import useSubject from "../../hooks/use-subject";
|
||||
import accountService from "../../services/account";
|
||||
|
||||
@ -10,19 +11,22 @@ export default function LoginView() {
|
||||
if (current) return <Navigate to={location.state?.from ?? "/"} replace />;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
direction="column"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
gap="4"
|
||||
height="100%"
|
||||
padding="4"
|
||||
overflowX="hidden"
|
||||
overflowY="auto"
|
||||
>
|
||||
<Avatar src="/apple-touch-icon.png" size="lg" flexShrink={0} />
|
||||
<Heading>noStrudel</Heading>
|
||||
<Outlet />
|
||||
</Flex>
|
||||
<>
|
||||
<ReloadPrompt />
|
||||
<Flex
|
||||
direction="column"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
gap="4"
|
||||
height="100%"
|
||||
padding="4"
|
||||
overflowX="hidden"
|
||||
overflowY="auto"
|
||||
>
|
||||
<Avatar src="/apple-touch-icon.png" size="lg" flexShrink={0} />
|
||||
<Heading>noStrudel</Heading>
|
||||
<Outlet />
|
||||
</Flex>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user