mirror of
https://github.com/sasjs/server.git
synced 2026-01-15 09:50:06 +00:00
feat(web): directory tree in sidebar of drive should be expanded by default at root level
This commit is contained in:
@@ -68,12 +68,15 @@ const SideBar = ({ directoryData, handleSelect }: Props) => {
|
|||||||
>
|
>
|
||||||
<Toolbar />
|
<Toolbar />
|
||||||
<Box sx={{ overflow: 'auto' }}>
|
<Box sx={{ overflow: 'auto' }}>
|
||||||
<TreeView
|
{directoryData && (
|
||||||
defaultCollapseIcon={<ExpandMoreIcon />}
|
<TreeView
|
||||||
defaultExpandIcon={<ChevronRightIcon />}
|
defaultCollapseIcon={<ExpandMoreIcon />}
|
||||||
>
|
defaultExpandIcon={<ChevronRightIcon />}
|
||||||
{directoryData && renderTree(directoryData)}
|
defaultExpanded={[directoryData.relativePath]}
|
||||||
</TreeView>
|
>
|
||||||
|
{renderTree(directoryData)}
|
||||||
|
</TreeView>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user