Skip to content

Commit 265a3af

Browse files
committed
finalized database creation time and aligned content
1 parent b25aec7 commit 265a3af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/NodeInfoPanel.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from "react";
1+
import React, { useEffect, useRef } from "react"; // add useRef
22
import { Box, Typography, IconButton, Drawer, Grid, Card, CardContent, CardActions, Button } from "@mui/material";
33
import CloseIcon from "@mui/icons-material/Close";
44
import { NodeObject } from "modules/universe/NeuroJsonGraph";
@@ -54,14 +54,17 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({ open, onClose, nodeData }
5454
const navigate = useNavigate();
5555
const dispatch = useAppDispatch();
5656
const dbInfo = useAppSelector((state: RootState) => state.neurojson.dbInfo);
57+
// const drawerRef = useRef<HTMLDivElement>(null); // Reference to the Drawer content
5758
// const loading = useAppSelector((state: RootState) => state.neurojson.loading);
5859
// console.log("dbInfo", dbInfo);
5960

6061
useEffect(() => {
6162
if (nodeData?.id) {
6263
dispatch(fetchDbInfo(nodeData.id.toLowerCase()));
6364
}
64-
}, [nodeData, dispatch])
65+
}, [nodeData, dispatch]);
66+
67+
6568

6669
return (
6770
<Drawer

0 commit comments

Comments
 (0)