bump mui
This commit is contained in:
1 parent
874d1b277a
commit
888910abb2
7 files changed
+847
-1044
No files matched your search
Generated
+807
-1016
File diff suppressed because it is too large.
Load diff
+4
-4
@@ -17,10 +17,10 @@
|
|||||||
"@emotion/styled": "^11.13.0",
|
"@emotion/styled": "^11.13.0",
|
||||||
"@hello-pangea/dnd": "^18.0.0",
|
"@hello-pangea/dnd": "^18.0.0",
|
||||||
"@hookform/resolvers": "5.2.2",
|
"@hookform/resolvers": "5.2.2",
|
||||||
"@mui/lab": "6.0.0-dev.240424162023-9968b4889d",
|
"@mui/lab": "7.0.0",
|
||||||
"@mui/material": "6.4.11",
|
"@mui/material": "7.3.7",
|
||||||
"@mui/x-charts": "^7.5.1",
|
"@mui/x-charts": "7.29.1",
|
||||||
"@mui/x-date-pickers": "7.29.0",
|
"@mui/x-date-pickers": "7.29.4",
|
||||||
"@reduxjs/toolkit": "2.7.0",
|
"@reduxjs/toolkit": "2.7.0",
|
||||||
"axios": "^1.7.4",
|
"axios": "^1.7.4",
|
||||||
"dayjs": "1.11.13",
|
"dayjs": "1.11.13",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import Grid2 from "@mui/material/Grid2";
|
import Grid2 from "@mui/material/Grid";
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import Paper from "@mui/material/Paper";
|
import Paper from "@mui/material/Paper";
|
||||||
|
|||||||
@@ -6,48 +6,60 @@ import Typography from "@mui/material/Typography";
|
|||||||
import { BaseBox, ValueLabel } from "@/Components/v2/design-elements";
|
import { BaseBox, ValueLabel } from "@/Components/v2/design-elements";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import type { Monitor } from "@/Types/Monitor";
|
|
||||||
import type { Incident } from "@/Types/Incident";
|
import type { Incident } from "@/Types/Incident";
|
||||||
|
import type { Monitor } from "@/Types/Monitor";
|
||||||
import { useTheme } from "@mui/material";
|
import { useTheme } from "@mui/material";
|
||||||
|
|
||||||
interface CardDetailsProps {
|
interface CardDetailsProps {
|
||||||
incident: Incident | null;
|
incident: Incident | null;
|
||||||
monitor: Monitor | null;
|
monitor: Monitor | null;
|
||||||
sx?: React.CSSProperties;
|
sx?: object;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
|
export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
|
void monitor; // Will be used in future UI implementation
|
||||||
|
|
||||||
if (!incident) {
|
if (!incident) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Stack gap={theme.spacing(4)}>
|
<Stack
|
||||||
|
gap={theme.spacing(4)}
|
||||||
|
sx={sx}
|
||||||
|
>
|
||||||
<Typography textTransform={"uppercase"}>
|
<Typography textTransform={"uppercase"}>
|
||||||
{t("pages.incidents.dialog.details.title")}
|
{t("pages.incidents.dialog.details.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<BaseBox padding={8}>
|
<BaseBox padding={8}>
|
||||||
<Typography textTransform={"uppercase"}>
|
<Stack gap={theme.spacing(4)}>
|
||||||
{t("pages.incidents.dialog.details.overview")}
|
<Typography textTransform={"uppercase"}>
|
||||||
</Typography>
|
{t("pages.incidents.dialog.details.overview")}
|
||||||
<Divider />
|
</Typography>
|
||||||
|
<Divider />
|
||||||
|
|
||||||
<Grid container>
|
<Grid
|
||||||
<Grid>
|
container
|
||||||
<Box>
|
gap={theme.spacing(4)}
|
||||||
<ValueLabel
|
>
|
||||||
value={incident.status ? "positive" : "negative"}
|
<Grid size={12}>
|
||||||
text={
|
<Box>
|
||||||
incident.status
|
<ValueLabel
|
||||||
? t("common.labels.active")
|
value={incident.status ? "positive" : "negative"}
|
||||||
: t("common.labels.resolved")
|
text={
|
||||||
}
|
incident.status
|
||||||
/>
|
? t("common.labels.active")
|
||||||
</Box>
|
: t("common.labels.resolved")
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
</Grid>
|
||||||
|
<Grid size={6}>Test</Grid>
|
||||||
|
<Grid size={6}>Test</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Stack>
|
||||||
</BaseBox>
|
</BaseBox>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import Divider from "@mui/material/Divider";
|
import Divider from "@mui/material/Divider";
|
||||||
import Grid from "@mui/material/Grid2";
|
import Grid from "@mui/material/Grid";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { ValueLabel } from "@/Components/v2/design-elements";
|
import { ValueLabel } from "@/Components/v2/design-elements";
|
||||||
import { Globe } from "lucide-react";
|
import { Globe } from "lucide-react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Grid from "@mui/material/Grid2";
|
import Grid from "@mui/material/Grid";
|
||||||
import { HistogramInfrastructure } from "@/Components/v2/monitors";
|
import { HistogramInfrastructure } from "@/Components/v2/monitors";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Grid from "@mui/material/Grid2";
|
import Grid from "@mui/material/Grid";
|
||||||
import { HistogramInfrastructure } from "@/Components/v2/monitors";
|
import { HistogramInfrastructure } from "@/Components/v2/monitors";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
Reference in new issue
Block a user