feat: move about & rules pages to the sidebar layout

This commit is contained in:
Maganth Seetharaman
2020-01-25 11:52:07 -05:00
committed by Jean-Philippe Sirois
parent d0eb85b61a
commit 724ef13186
4 changed files with 14 additions and 14 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ export const Sidebar: FC<PropsWithChildren<
HTMLAttributes<HTMLDivElement>
>> = props => {
const { children, ...restProps } = props
const isBorderVisible = children === undefined ? false : true
return (
<SC.SidebarWrapper {...restProps}>
@@ -40,7 +41,7 @@ export const Sidebar: FC<PropsWithChildren<
<SC.Inner>
{children}
<SC.Menu>
<SC.Menu borderVisibility={isBorderVisible}>
<MenuItem to="/about">about</MenuItem>
<MenuItem to="/rules">rules</MenuItem>
<MenuItem to="/resources">resources</MenuItem>