add log out button to logged in view

This commit is contained in:
Michael Fatemi 2021-07-03 01:08:56 -04:00
parent d4aca49302
commit bff71a0a3a

View File

@ -1,6 +1,8 @@
import { CSSProperties } from 'react'; import { CSSProperties } from 'react';
import logout from './Authentication/logout';
import Events from './Events'; import Events from './Events';
import Groups from './Groups'; import Groups from './Groups';
import UIPressable from './UIPressable';
import UIPrimaryTitle from './UIPrimaryTitle'; import UIPrimaryTitle from './UIPrimaryTitle';
const style: CSSProperties = { const style: CSSProperties = {
@ -18,6 +20,8 @@ export default function WheelShare() {
<div style={style}> <div style={style}>
<UIPrimaryTitle>WheelShare</UIPrimaryTitle> <UIPrimaryTitle>WheelShare</UIPrimaryTitle>
<UIPressable onClick={logout}>Log out</UIPressable>
<Groups /> <Groups />
<Events /> <Events />
</div> </div>