sidebar props

This commit is contained in:
Xetera
2019-07-27 15:52:25 -04:00
committed by Jean-Philippe Sirois
parent 378bb7d4db
commit 556e0f70f4
+12 -6
View File
@@ -6,18 +6,24 @@ const makeTree = () => {
}
const Sidebar = () => {
export interface SidebarProps {
readonly width: string | number;
}
const Sidebar = ({ width }: SidebarProps) => {
return (
<Tree
nodeLabel={<div>"Javascript"</div>}
>
<div style={{ width }}>
<Tree
nodeLabel={<div>"Javascript"</div>}
>
Test
</Tree>
<Tree
nodeLabel={<div>"Javascript"</div>}
>
Test
</Tree>
</Tree>
</div>
)
}