1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-23 07:14:21 +00:00

🔧 Add a "Continue to Sophon" button to the Logout box

This commit is contained in:
Steffo 2021-09-19 16:29:08 +02:00
parent f75edfc00d
commit 682b6deba8
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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>