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

🔧 Add icons to LogoutBox

This commit is contained in:
Steffo 2021-10-15 18:47:08 +02:00 committed by Stefano Pigozzi
parent 5c88679689
commit fe5ed62480

View file

@ -1,5 +1,5 @@
import {faUser as faUserRegular} from "@fortawesome/free-regular-svg-icons"
import {faExclamationCircle, faTimesCircle, faUser as faUserSolid} from "@fortawesome/free-solid-svg-icons"
import {faChevronRight, faExclamationCircle, faSignOutAlt, faTimesCircle, faUser as faUserSolid} from "@fortawesome/free-solid-svg-icons"
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
import {navigate} from "@reach/router"
import {Box, Form, Heading, Idiomatic as I} from "@steffo/bluelib-react"
@ -67,7 +67,7 @@ export function AuthorizationLogoutBox(): JSX.Element {
<Form>
<Form.Row>
<Form.Button onClick={() => navigate("l/logged-in/")}>
Continue to Sophon
<FontAwesomeIcon icon={faChevronRight}/>&nbsp;Continue to Sophon
</Form.Button>
</Form.Row>
</Form>
@ -77,7 +77,7 @@ export function AuthorizationLogoutBox(): JSX.Element {
<Form>
<Form.Row>
<Form.Button disabled={!canLogout} onClick={doLogout}>
Logout
<FontAwesomeIcon icon={faSignOutAlt}/>&nbsp;Logout
</Form.Button>
</Form.Row>
</Form>