Merge branch 'develop' of github.com:renatoka/Checkmate into fix/1894-register-token-stringify

This commit is contained in:
renatoka committed 2025-03-10 18:23:17 +01:00
commit e068fa24f3
4 files changed
+14 -13

No files matched your search

@@ -1,7 +1,7 @@
import DataTable from "../../../../../Components/Table";
import { useTheme } from "@emotion/react";
import { useNavigate } from "react-router-dom";
import { ColoredLabel } from "../../../../../Components/Label";
import { StatusLabel } from "../../../../../Components/Label";
import ArrowOutwardIcon from "@mui/icons-material/ArrowOutward";
import { Stack, Typography } from "@mui/material";
const StatusPagesTable = ({ data }) => {
@@ -66,12 +66,11 @@ const StatusPagesTable = ({ data }) => {
id: "status",
content: "Status",
render: (row) => {
const status = row.isPublished ? "published" : "unpublished";
return (
<ColoredLabel
label={row.isPublished ? "Published" : "Unpublished"}
color={
row.isPublished ? theme.palette.success.main : theme.palette.warning.main
}
<StatusLabel
status={status}
text={row.isPublished ? "Published" : "Unpublished"}
/>
);
},