mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
feat: move about & rules pages to the sidebar layout
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
d0eb85b61a
commit
724ef13186
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user