From 0a748b1ed26f81455b79a64e4da6d5942373c91c Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Sun, 16 Jun 2024 20:23:39 +0100 Subject: [PATCH] add logout button to nav drawer (#33) --- src/components/material/Drawer.tsx | 4 ++-- src/pages/dashboard/Dashboard.tsx | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/material/Drawer.tsx b/src/components/material/Drawer.tsx index 28ba3e4f..7779b410 100644 --- a/src/components/material/Drawer.tsx +++ b/src/components/material/Drawer.tsx @@ -22,14 +22,14 @@ const Drawer: ParentComponent = (props) => { return ( <> diff --git a/src/pages/dashboard/Dashboard.tsx b/src/pages/dashboard/Dashboard.tsx index 0e6bab61..4e84bfab 100644 --- a/src/pages/dashboard/Dashboard.tsx +++ b/src/pages/dashboard/Dashboard.tsx @@ -15,6 +15,7 @@ import { getDevices } from '~/api/devices' import { getProfile } from '~/api/profile' import type { Device } from '~/types' +import Button from '~/components/material/Button' import Drawer from '~/components/material/Drawer' import IconButton from '~/components/material/IconButton' import TopAppBar from '~/components/material/TopAppBar' @@ -49,6 +50,9 @@ const DashboardDrawer = (props: { {(devices: Device[]) => } +
+
+ ) }