1
0
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:
2022-03-16 19:13:50 +00:00
parent fb77d99177
commit 3d89b753f0

View File

@@ -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>
) )