1
Fork 0
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:
Steffo 2021-09-19 16:29:08 +02:00
parent 36143d4e16
commit 85e07f59c8

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>