Skip to content

Commit d918356

Browse files
committed
feat: add metadata panel to dataset detail page
1 parent 9e7fca3 commit d918356

File tree

7 files changed

+391
-249
lines changed

7 files changed

+391
-249
lines changed

src/components/DatasetDetailPage/FileTree/FileTreeRow.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import DownloadIcon from "@mui/icons-material/Download";
77
import ExpandLess from "@mui/icons-material/ExpandLess";
88
import ExpandMore from "@mui/icons-material/ExpandMore";
99
import FolderIcon from "@mui/icons-material/Folder";
10+
import FolderOpenIcon from "@mui/icons-material/FolderOpen";
1011
import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile";
1112
import VisibilityIcon from "@mui/icons-material/Visibility";
1213
import { Box, Button, Collapse, Typography } from "@mui/material";
@@ -147,12 +148,23 @@ const FileTreeRow: React.FC<Props> = ({
147148
onClick={() => setOpen((o) => !o)}
148149
>
149150
<Box sx={{ pl: level * 1.25 }}>
150-
<FolderIcon
151+
{/* <FolderIcon
151152
fontSize="small"
152153
sx={{
153154
color: isJson ? Colors.orange : Colors.darkPurple,
154155
}}
155-
/>
156+
/> */}
157+
{open ? (
158+
<FolderOpenIcon
159+
fontSize="small"
160+
sx={{ color: isJson ? Colors.orange : Colors.darkPurple }}
161+
/>
162+
) : (
163+
<FolderIcon
164+
fontSize="small"
165+
sx={{ color: isJson ? Colors.orange : Colors.darkPurple }}
166+
/>
167+
)}
156168
</Box>
157169

158170
<Typography

0 commit comments

Comments
 (0)