mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
sidebar props
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
3c52c17227
commit
0f46f87b75
@@ -6,18 +6,24 @@ const makeTree = () => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Sidebar = () => {
|
export interface SidebarProps {
|
||||||
|
readonly width: string | number;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Sidebar = ({ width }: SidebarProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tree
|
<div style={{ width }}>
|
||||||
nodeLabel={<div>"Javascript"</div>}
|
|
||||||
>
|
|
||||||
<Tree
|
<Tree
|
||||||
nodeLabel={<div>"Javascript"</div>}
|
nodeLabel={<div>"Javascript"</div>}
|
||||||
>
|
>
|
||||||
Test
|
<Tree
|
||||||
</Tree>
|
nodeLabel={<div>"Javascript"</div>}
|
||||||
|
>
|
||||||
|
Test
|
||||||
</Tree>
|
</Tree>
|
||||||
|
</Tree>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user