card-details
This commit is contained in:
1 parent
f69b6bbf31
commit
04c3c57a59
1 file changed
+11
-10
@@ -3,6 +3,7 @@ import Grid from "@mui/material/Grid";
|
|||||||
import Divider from "@mui/material/Divider";
|
import Divider from "@mui/material/Divider";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { BaseBox, ValueLabel } from "@/Components/design-elements";
|
import { BaseBox, ValueLabel } from "@/Components/design-elements";
|
||||||
|
import { LAYOUT } from "@/Utils/Theme/constants";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import type { Incident } from "@/Types/Incident";
|
import type { Incident } from "@/Types/Incident";
|
||||||
@@ -29,14 +30,14 @@ export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(LAYOUT.MD)}
|
||||||
sx={sx}
|
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={LAYOUT.MD}>
|
||||||
<Stack gap={theme.spacing(4)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
<Typography textTransform={"uppercase"}>
|
<Typography textTransform={"uppercase"}>
|
||||||
{t("pages.incidents.dialog.details.overview")}
|
{t("pages.incidents.dialog.details.overview")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -44,7 +45,7 @@ export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
|
|||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
spacing={theme.spacing(4)}
|
spacing={theme.spacing(LAYOUT.MD)}
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
>
|
>
|
||||||
<Grid size={2}>{t("pages.incidents.dialog.details.status")}</Grid>
|
<Grid size={2}>{t("pages.incidents.dialog.details.status")}</Grid>
|
||||||
@@ -75,15 +76,15 @@ export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Stack>
|
</Stack>
|
||||||
</BaseBox>
|
</BaseBox>
|
||||||
<BaseBox padding={8}>
|
<BaseBox padding={LAYOUT.MD}>
|
||||||
<Stack gap={theme.spacing(4)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
<Typography textTransform={"uppercase"}>
|
<Typography textTransform={"uppercase"}>
|
||||||
{t("pages.incidents.dialog.details.analysis")}
|
{t("pages.incidents.dialog.details.analysis")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider />
|
<Divider />
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
spacing={theme.spacing(2)}
|
spacing={theme.spacing(LAYOUT.MD)}
|
||||||
>
|
>
|
||||||
<Grid size={6}>
|
<Grid size={6}>
|
||||||
<Typography>{t("pages.incidents.dialog.details.timeline")}</Typography>
|
<Typography>{t("pages.incidents.dialog.details.timeline")}</Typography>
|
||||||
@@ -127,15 +128,15 @@ export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
</BaseBox>
|
</BaseBox>
|
||||||
{!incident.status && (
|
{!incident.status && (
|
||||||
<BaseBox padding={8}>
|
<BaseBox padding={LAYOUT.MD}>
|
||||||
<Stack gap={theme.spacing(4)}>
|
<Stack gap={theme.spacing(LAYOUT.XS)}>
|
||||||
<Typography textTransform={"uppercase"}>
|
<Typography textTransform={"uppercase"}>
|
||||||
{t("pages.incidents.dialog.details.resolutionDetails")}
|
{t("pages.incidents.dialog.details.resolutionDetails")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider />
|
<Divider />
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
spacing={theme.spacing(2)}
|
spacing={theme.spacing(LAYOUT.MD)}
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
>
|
>
|
||||||
<Grid size={2}>
|
<Grid size={2}>
|
||||||
|
|||||||
Reference in new issue
Block a user