mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Add a "Continue to Sophon" button to the Logout box
This commit is contained in:
parent
36143d4e16
commit
85e07f59c8
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,8 @@ import * as React from "react"
|
|||
import {Box, Form, Heading, Panel, Variable} from "@steffo/bluelib-react";
|
||||
import {useLogin} from "./LoginContext";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {faTimesCircle, faUser} from "@fortawesome/free-solid-svg-icons";
|
||||
import {faUser} from "@fortawesome/free-solid-svg-icons";
|
||||
import {navigate} from "@reach/router";
|
||||
|
||||
|
||||
export function LogoutBox(): JSX.Element {
|
||||
|
@ -31,6 +32,9 @@ export function LogoutBox(): JSX.Element {
|
|||
<Form.Button onClick={login.logout}>
|
||||
Logout
|
||||
</Form.Button>
|
||||
<Form.Button onClick={() => navigate("/logged-in")}>
|
||||
Continue to Sophon
|
||||
</Form.Button>
|
||||
</Form.Row>
|
||||
</Form>
|
||||
</Box>
|
||||
|
|
Loading…
Reference in a new issue