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>
+2 -1
View File
@@ -34,7 +34,8 @@ export const Inner = styled.div`
export const Menu = styled.nav`
display: flex;
flex-direction: column;
border-top: 1px dashed #a5a5a5;
border-top: ${props =>
props.borderVisibility ? "1px dashed #a5a5a5" : "none"};
margin: 20px 0 40px;
padding-top: 20px;
`