normalize
This commit is contained in:
1 parent
29bb1615f5
commit
301942d0eb
3 files changed
+19
-14
No files matched your search
@@ -13,6 +13,7 @@ import { useSelector } from "react-redux";
|
|||||||
import type { RootState } from "@/Types/state";
|
import type { RootState } from "@/Types/state";
|
||||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
||||||
import { getIncidentsDuration } from "@/Pages/Incidents/utils";
|
import { getIncidentsDuration } from "@/Pages/Incidents/utils";
|
||||||
|
import { theme } from "@/Utils/Theme/Theme";
|
||||||
|
|
||||||
interface CardDetailsProps {
|
interface CardDetailsProps {
|
||||||
incident: Incident | null;
|
incident: Incident | null;
|
||||||
@@ -20,15 +21,19 @@ interface CardDetailsProps {
|
|||||||
sx?: object;
|
sx?: object;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SectionHeading = ({ children }: { children: React.ReactNode }) => (
|
const SectionHeading = ({ children }: { children: React.ReactNode }) => {
|
||||||
<Typography
|
const theme = useTheme();
|
||||||
component="h2"
|
|
||||||
variant="eyebrow"
|
return (
|
||||||
color="text.secondary"
|
<Typography
|
||||||
>
|
component="h2"
|
||||||
{children}
|
variant="eyebrow"
|
||||||
</Typography>
|
color={theme.palette.text.secondary}
|
||||||
);
|
>
|
||||||
|
{children}
|
||||||
|
</Typography>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const Cell = ({ children }: { children: React.ReactNode }) => (
|
const Cell = ({ children }: { children: React.ReactNode }) => (
|
||||||
<Typography variant="body1">{children}</Typography>
|
<Typography variant="body1">{children}</Typography>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export const SummaryCard = ({
|
|||||||
<Typography
|
<Typography
|
||||||
component="h2"
|
component="h2"
|
||||||
variant="eyebrow"
|
variant="eyebrow"
|
||||||
color="text.secondary"
|
color={theme.palette.text.secondary}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -188,8 +188,8 @@ const IncidentsPage = () => {
|
|||||||
<>
|
<>
|
||||||
<Typography
|
<Typography
|
||||||
variant="eyebrow"
|
variant="eyebrow"
|
||||||
color="text.secondary"
|
color={theme.palette.text.secondary}
|
||||||
sx={{ mb: theme.spacing(LAYOUT.XS) }}
|
mb={theme.spacing(LAYOUT.XS)}
|
||||||
>
|
>
|
||||||
{t("pages.incidents.table.activeIncidents")}
|
{t("pages.incidents.table.activeIncidents")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -211,8 +211,8 @@ const IncidentsPage = () => {
|
|||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
variant="eyebrow"
|
variant="eyebrow"
|
||||||
color="text.secondary"
|
color={theme.palette.text.secondary}
|
||||||
sx={{ mb: theme.spacing(LAYOUT.XS) }}
|
mb={theme.spacing(LAYOUT.XS)}
|
||||||
>
|
>
|
||||||
{t("pages.incidents.table.resolvedIncidents")}
|
{t("pages.incidents.table.resolvedIncidents")}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in new issue
Block a user