fix buttons

This commit is contained in:
Alex Holliday committed 2025-12-08 22:08:22 +00:00
1 parent 50b734cf24
commit a8e55db134
2 files changed
+41 -5

No files matched your search

@@ -36,6 +36,14 @@ export const HeaderRange = ({
variant="contained"
onClick={() => setRange("all")}
loading={loading}
sx={
range === "all"
? {
backgroundColor: theme.palette.secondary.dark,
color: theme.palette.secondary.contrastText,
}
: undefined
}
>
All
</Button>
@@ -44,6 +52,14 @@ export const HeaderRange = ({
variant="contained"
onClick={() => setRange("2h")}
loading={loading}
sx={
range === "2h"
? {
backgroundColor: theme.palette.secondary.dark,
color: theme.palette.secondary.contrastText,
}
: undefined
}
>
Recent
</Button>
@@ -51,6 +67,14 @@ export const HeaderRange = ({
variant="contained"
onClick={() => setRange("24h")}
loading={loading}
sx={
range === "24h"
? {
backgroundColor: theme.palette.secondary.dark,
color: theme.palette.secondary.contrastText,
}
: undefined
}
>
Day
</Button>
@@ -58,6 +82,14 @@ export const HeaderRange = ({
variant="contained"
onClick={() => setRange("7d")}
loading={loading}
sx={
range === "7d"
? {
backgroundColor: theme.palette.secondary.dark,
color: theme.palette.secondary.contrastText,
}
: undefined
}
>
7 days
</Button>
@@ -65,6 +97,14 @@ export const HeaderRange = ({
variant="contained"
onClick={() => setRange("30d")}
loading={loading}
sx={
range === "30d"
? {
backgroundColor: theme.palette.secondary.dark,
color: theme.palette.secondary.contrastText,
}
: undefined
}
>
30 days
</Button>
+1 -5
View File
@@ -1,10 +1,6 @@
import { Outlet } from "react-router";
import Stack from "@mui/material/Stack";
import {
SideBar,
COLLAPSED_WIDTH,
EXPANDED_WIDTH,
} from "@/components/layouts/sidebar";
import { SideBar, COLLAPSED_WIDTH } from "@/components/layouts/sidebar";
import { useTheme } from "@mui/material/styles";
import useMediaQuery from "@mui/material/useMediaQuery";
const RootLayout = () => {