@@ -54,8 +54,8 @@ 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 loading = useAppSelector ( ( state : RootState ) => state . neurojson . loading ) ;
58- console . log ( "dbInfo" , dbInfo ) ;
57+ // const loading = useAppSelector((state: RootState) => state.neurojson.loading);
58+ // console.log("dbInfo", dbInfo);
5959
6060 useEffect ( ( ) => {
6161 if ( nodeData ?. id ) {
@@ -82,45 +82,45 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({ open, onClose, nodeData }
8282 { nodeData ? (
8383 < >
8484 { /* Close Button */ }
85- < Box display = "flex" justifyContent = "space-between" alignItems = "center" >
86- < Typography variant = "h6" sx = { { color : Colors . primary . dark } } > { nodeData . name } </ Typography >
85+ < Box display = "flex" justifyContent = "space-between" alignItems = "center" paddingLeft = { 2 } >
86+ < Typography variant = "h6" sx = { { color : Colors . primary . dark , fontWeight : "Bold" } } > { nodeData . name } </ Typography >
8787 < IconButton onClick = { onClose } sx = { { color : Colors . primary . main } } >
8888 < CloseIcon />
8989 </ IconButton >
9090 </ Box >
9191 { /* Node Metadata */ }
92- < Grid container spacing = { 2 } >
92+ < Grid container spacing = { 2 } sx = { { pl : 2 } } >
9393 < Grid item xs = { 12 } >
94- < Typography > Website</ Typography >
94+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Website</ Typography >
9595 < Typography >
96- < a href = { nodeData . url } target = "_blank" > { nodeData . url } </ a >
96+ < a href = { nodeData . url } target = "_blank" style = { { textDecoration : "none" , color : Colors . textPrimary } } > { nodeData . url } </ a >
9797 </ Typography >
9898 </ Grid >
9999
100100 < Grid item xs = { 12 } >
101- < Typography > Number of Datasets</ Typography >
101+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Number of Datasets</ Typography >
102102 < Typography > { nodeData . datasets } </ Typography >
103103 </ Grid >
104104
105105 < Grid item xs = { 12 } >
106- < Typography > Data Types</ Typography >
106+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Data Types</ Typography >
107107 < Typography > { nodeData . datatype . join ( ", " ) } </ Typography >
108108 </ Grid >
109109
110110 < Grid item xs = { 12 } >
111- < Typography > Data Standards</ Typography >
111+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Data Standards</ Typography >
112112 < Typography > { nodeData . standard . join ( ", " ) } </ Typography >
113113 </ Grid >
114114
115115 < Grid item xs = { 12 } >
116- < Typography > Upstream Contact</ Typography >
116+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Upstream Contact</ Typography >
117117 < a href = { `mailto:${ nodeData . support } ` } style = { { textDecoration : "none" , color : "blue" } } >
118118 < Typography > { nodeData . support } </ Typography >
119119 </ a >
120120 </ Grid >
121121
122122 < Grid item xs = { 12 } >
123- < Typography > NeuroJSON-Cuated Datasets</ Typography >
123+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > NeuroJSON-Cuated Datasets</ Typography >
124124 { dbInfo ?( < Typography > { dbInfo . doc_count - 1 } </ Typography > ) : "Coming soon " }
125125 </ Grid >
126126 </ Grid >
@@ -130,25 +130,25 @@ const NodeInfoPanel: React.FC<NodeInfoPanelProps> = ({ open, onClose, nodeData }
130130 < CardContent >
131131 < Grid container spacing = { 1 } >
132132 < Grid item xs = { 12 } >
133- < Typography > NeuroJSON.io Database Name</ Typography >
133+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > NeuroJSON.io Database Name</ Typography >
134134 < Typography > { dbInfo . db_name } </ Typography >
135135 </ Grid >
136136 < Grid item xs = { 12 } >
137- < Typography > REST-API URL</ Typography >
138- < a href = { `https://neurojson.io:7777/${ dbInfo . db_name } ` } target = "_blank" rel = "noopener noreferrer" >
137+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > REST-API URL</ Typography >
138+ < a href = { `https://neurojson.io:7777/${ dbInfo . db_name } ` } target = "_blank" rel = "noopener noreferrer" style = { { textDecoration : "none" , color : Colors . textPrimary } } >
139139 { `https://neurojson.io:7777/${ dbInfo . db_name } ` }
140140 </ a >
141141 </ Grid >
142142 < Grid item xs = { 12 } >
143- < Typography > Database Creation Time</ Typography >
143+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Database Creation Time</ Typography >
144144 < Typography > { dateCoverter ( dbInfo . instance_start_time ) } </ Typography >
145145 </ Grid >
146146 < Grid item xs = { 12 } >
147- < Typography > Searchable Database Size</ Typography >
147+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > Searchable Database Size</ Typography >
148148 < Typography > { formatSize ( dbInfo . sizes ?. external ) } </ Typography >
149149 </ Grid >
150150 < Grid item xs = { 12 } >
151- < Typography > DatabaseDisk Size (compressed)</ Typography >
151+ < Typography sx = { { color : Colors . primary . main , fontWeight : "Bold" } } > DatabaseDisk Size (compressed)</ Typography >
152152 < Typography > { formatSize ( dbInfo . sizes ?. file ) } </ Typography >
153153 </ Grid >
154154 </ Grid >
0 commit comments