mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-12-15 00:35:47 -07:00
Updated Site List
This commit is contained in:
@@ -8,6 +8,8 @@ import {
|
||||
Tooltip,
|
||||
} from "@mui/material";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import LocationCityIcon from "@mui/icons-material/LocationCity";
|
||||
|
||||
import DeleteIcon from "@mui/icons-material/DeleteOutline";
|
||||
import EditIcon from "@mui/icons-material/Edit";
|
||||
import { AgGridReact } from "ag-grid-react";
|
||||
@@ -139,24 +141,15 @@ export default function SiteList({ onOpenDevicesForSite }) {
|
||||
}}
|
||||
elevation={0}
|
||||
>
|
||||
{/* Hero Section */}
|
||||
<Box sx={{ p: { xs: 2, md: 3 }, pb: 1 }}>
|
||||
<Box
|
||||
sx={{
|
||||
borderRadius: 4,
|
||||
border: `1px solid ${MAGIC_UI.panelBorder}`,
|
||||
background: MAGIC_UI.panelBg,
|
||||
p: { xs: 2, md: 3 },
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
flexWrap: "wrap",
|
||||
gap: 3,
|
||||
}}
|
||||
>
|
||||
{/* Hero Section Removed — integrated header and buttons */}
|
||||
<Box sx={{ p: { xs: 2, md: 3 }, pb: 1, display: "flex", alignItems: "center", justifyContent: "space-between", flexWrap: "wrap" }}>
|
||||
<Box sx={{ display: "flex", flexDirection: "column", gap: 1 }}>
|
||||
<Typography variant="h5" sx={{ color: MAGIC_UI.textBright, fontWeight: 700 }}>
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
|
||||
<LocationCityIcon sx={{ color: MAGIC_UI.accentA }} />
|
||||
<Typography variant="h6" sx={{ color: MAGIC_UI.textBright, fontWeight: 700, fontSize: "1.3rem" }}>
|
||||
Managed Sites
|
||||
</Typography>
|
||||
</Box>
|
||||
<Typography sx={{ color: MAGIC_UI.textMuted }}>
|
||||
{`Monitoring ${heroStats.totalDevices} devices across ${heroStats.totalSites} site(s)`}
|
||||
</Typography>
|
||||
@@ -166,7 +159,7 @@ export default function SiteList({ onOpenDevicesForSite }) {
|
||||
</Typography>
|
||||
)}
|
||||
</Box>
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }}>
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap", justifyContent: "flex-end" }}>
|
||||
<Button variant="contained" size="small" startIcon={<AddIcon />} sx={RAINBOW_BUTTON_SX} onClick={() => setCreateOpen(true)}>
|
||||
Create Site
|
||||
</Button>
|
||||
@@ -207,9 +200,9 @@ export default function SiteList({ onOpenDevicesForSite }) {
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
{/* AG Grid */}
|
||||
}
|
||||
<Box sx={{ px: { xs: 2, md: 3 }, pb: 3, flexGrow: 1, display: "flex", flexDirection: "column" }}>
|
||||
<Box
|
||||
className={themeClassName}
|
||||
|
||||
Reference in New Issue
Block a user