Updated BasicDashboard UI to expand drives initially if single server (#1768)
This commit is contained in:
@@ -27,7 +27,7 @@ import { Box } from "@mui/material";
|
||||
import DriveInfoItem from "./DriveInfoItem";
|
||||
|
||||
const ServersList = ({ data }: { data: ServerInfo[] }) => {
|
||||
const [expanded, setExpanded] = React.useState<string>("");
|
||||
const [expanded, setExpanded] = React.useState<string>(data.length >1 ? "" : data[0].endpoint+"-0");
|
||||
|
||||
const handleClick = (key: string) => {
|
||||
setExpanded(key);
|
||||
|
||||
Reference in New Issue
Block a user