Skip to content

Commit

Permalink
fix(frontend): type safe sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
gozarman committed Feb 16, 2024
1 parent 6120596 commit 07f60e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dashboard/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Logo = () => {
);
};

export const Sidebar = () => {
export const Sidebar: FC = () => {
const [isDrawerOpen, setDrawerOpen] = useState(false);
const toggleDrawer = setDrawerOpen.bind(null, !isDrawerOpen);
const sidebar = useMemo(() => <SidebarContent />, []);
Expand Down Expand Up @@ -113,7 +113,7 @@ export const Sidebar = () => {
{
fallback: "md",
}
);
)!;
};

const SidebarContent = () => {
Expand Down

0 comments on commit 07f60e3

Please sign in to comment.