fix buttons
This commit is contained in:
1 parent
50b734cf24
commit
a8e55db134
2 files changed
+41
-5
No files matched your search
@@ -36,6 +36,14 @@ export const HeaderRange = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={() => setRange("all")}
|
onClick={() => setRange("all")}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
sx={
|
||||||
|
range === "all"
|
||||||
|
? {
|
||||||
|
backgroundColor: theme.palette.secondary.dark,
|
||||||
|
color: theme.palette.secondary.contrastText,
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
>
|
>
|
||||||
All
|
All
|
||||||
</Button>
|
</Button>
|
||||||
@@ -44,6 +52,14 @@ export const HeaderRange = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={() => setRange("2h")}
|
onClick={() => setRange("2h")}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
sx={
|
||||||
|
range === "2h"
|
||||||
|
? {
|
||||||
|
backgroundColor: theme.palette.secondary.dark,
|
||||||
|
color: theme.palette.secondary.contrastText,
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
>
|
>
|
||||||
Recent
|
Recent
|
||||||
</Button>
|
</Button>
|
||||||
@@ -51,6 +67,14 @@ export const HeaderRange = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={() => setRange("24h")}
|
onClick={() => setRange("24h")}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
sx={
|
||||||
|
range === "24h"
|
||||||
|
? {
|
||||||
|
backgroundColor: theme.palette.secondary.dark,
|
||||||
|
color: theme.palette.secondary.contrastText,
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
>
|
>
|
||||||
Day
|
Day
|
||||||
</Button>
|
</Button>
|
||||||
@@ -58,6 +82,14 @@ export const HeaderRange = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={() => setRange("7d")}
|
onClick={() => setRange("7d")}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
sx={
|
||||||
|
range === "7d"
|
||||||
|
? {
|
||||||
|
backgroundColor: theme.palette.secondary.dark,
|
||||||
|
color: theme.palette.secondary.contrastText,
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
>
|
>
|
||||||
7 days
|
7 days
|
||||||
</Button>
|
</Button>
|
||||||
@@ -65,6 +97,14 @@ export const HeaderRange = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={() => setRange("30d")}
|
onClick={() => setRange("30d")}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
sx={
|
||||||
|
range === "30d"
|
||||||
|
? {
|
||||||
|
backgroundColor: theme.palette.secondary.dark,
|
||||||
|
color: theme.palette.secondary.contrastText,
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
>
|
>
|
||||||
30 days
|
30 days
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import { Outlet } from "react-router";
|
import { Outlet } from "react-router";
|
||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import {
|
import { SideBar, COLLAPSED_WIDTH } from "@/components/layouts/sidebar";
|
||||||
SideBar,
|
|
||||||
COLLAPSED_WIDTH,
|
|
||||||
EXPANDED_WIDTH,
|
|
||||||
} from "@/components/layouts/sidebar";
|
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import useMediaQuery from "@mui/material/useMediaQuery";
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
||||||
const RootLayout = () => {
|
const RootLayout = () => {
|
||||||
|
|||||||
Reference in new issue
Block a user