sidebar props

This commit is contained in:
Xetera
2019-07-27 04:14:50 -04:00
committed by Jean-Philippe Sirois
parent 3c52c17227
commit 0f46f87b75
+7 -1
View File
@@ -6,9 +6,14 @@ const makeTree = () => {
} }
const Sidebar = () => { export interface SidebarProps {
readonly width: string | number;
}
const Sidebar = ({ width }: SidebarProps) => {
return ( return (
<div style={{ width }}>
<Tree <Tree
nodeLabel={<div>"Javascript"</div>} nodeLabel={<div>"Javascript"</div>}
> >
@@ -18,6 +23,7 @@ const Sidebar = () => {
Test Test
</Tree> </Tree>
</Tree> </Tree>
</div>
) )
} }