mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 16:06:13 +02:00
feat(resources): set up responsive sidebar
This commit is contained in:
@@ -117,12 +117,12 @@ function MenuItem({ children, to }: PropsWithChildren<{ to: string }>) {
|
||||
)
|
||||
}
|
||||
|
||||
export function ResourcesSidebar() {
|
||||
export function ResourcesSidebar(props: React.HTMLAttributes<HTMLDivElement>) {
|
||||
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
||||
const tree = useBuildTree(resources)
|
||||
|
||||
return (
|
||||
<SC.ResourcesSidebarWrapper>
|
||||
<SC.ResourcesSidebarWrapper {...props}>
|
||||
<Link to="/">
|
||||
<Banner />
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user