mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 12:12:54 +01:00
feat: add logout button on session expiry view
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
MFAEmail,
|
||||
MFARecoveryCode,
|
||||
ArrowRight,
|
||||
Logout,
|
||||
} from "../components/icons";
|
||||
import Field from "../components/field";
|
||||
import { getQueryParams, hardNavigate, makeURL } from "../navigation";
|
||||
@@ -157,6 +158,24 @@ function Auth(props: AuthProps) {
|
||||
>
|
||||
Jump to app <ArrowRight size={18} sx={{ ml: 1 }} />
|
||||
</Button>
|
||||
) : route === "sessionExpiry" ? (
|
||||
<>
|
||||
<Button
|
||||
variant={"secondary"}
|
||||
sx={{
|
||||
display: "flex",
|
||||
mt: 2,
|
||||
mr: 2,
|
||||
alignSelf: "end",
|
||||
alignItems: "center",
|
||||
}}
|
||||
onClick={() => db.user.logout()}
|
||||
color="error"
|
||||
>
|
||||
<Logout size={16} sx={{ mr: 1 }} color="error" /> Logout
|
||||
permanently
|
||||
</Button>
|
||||
</>
|
||||
) : null}
|
||||
|
||||
{Route && (
|
||||
|
||||
Reference in New Issue
Block a user