Merge remote-tracking branch 'upstream/develop' into feat/notification-modal
This commit is contained in:
commit
be779c34d9
4 files changed
+14
-13
No files matched your search
Generated
+4
-4
@@ -18,7 +18,7 @@
|
|||||||
"@mui/x-charts": "^7.5.1",
|
"@mui/x-charts": "^7.5.1",
|
||||||
"@mui/x-data-grid": "7.27.3",
|
"@mui/x-data-grid": "7.27.3",
|
||||||
"@mui/x-date-pickers": "7.27.3",
|
"@mui/x-date-pickers": "7.27.3",
|
||||||
"@reduxjs/toolkit": "2.6.0",
|
"@reduxjs/toolkit": "2.6.1",
|
||||||
"@solana/wallet-adapter-base": "0.9.23",
|
"@solana/wallet-adapter-base": "0.9.23",
|
||||||
"@solana/wallet-adapter-material-ui": "0.16.34",
|
"@solana/wallet-adapter-material-ui": "0.16.34",
|
||||||
"@solana/wallet-adapter-react": "0.15.35",
|
"@solana/wallet-adapter-react": "0.15.35",
|
||||||
@@ -4692,9 +4692,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@reduxjs/toolkit": {
|
"node_modules/@reduxjs/toolkit": {
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.6.1.tgz",
|
||||||
"integrity": "sha512-mWJCYpewLRyTuuzRSEC/IwIBBkYg2dKtQas8mty5MaV2iXzcmicS3gW554FDeOvLnY3x13NIk8MB1e8wHO7rqQ==",
|
"integrity": "sha512-SSlIqZNYhqm/oMkXbtofwZSt9lrncblzo6YcZ9zoX+zLngRBrCOjK4lNLdkNucJF58RHOWrD9txT3bT3piH7Zw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"immer": "^10.0.3",
|
"immer": "^10.0.3",
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
"@mui/icons-material": "6.4.7",
|
"@mui/icons-material": "6.4.7",
|
||||||
"@mui/lab": "6.0.0-beta.30",
|
"@mui/lab": "6.0.0-beta.30",
|
||||||
"@mui/material": "6.4.7",
|
"@mui/material": "6.4.7",
|
||||||
"@reduxjs/toolkit": "2.6.0",
|
"@reduxjs/toolkit": "2.6.1",
|
||||||
"@solana/wallet-adapter-base": "0.9.23",
|
"@solana/wallet-adapter-base": "0.9.23",
|
||||||
"@solana/wallet-adapter-material-ui": "0.16.34",
|
"@solana/wallet-adapter-material-ui": "0.16.34",
|
||||||
"@solana/wallet-adapter-react": "0.15.35",
|
"@solana/wallet-adapter-react": "0.15.35",
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ ColoredLabel.propTypes = {
|
|||||||
/**
|
/**
|
||||||
* @component
|
* @component
|
||||||
* @param {Object} props
|
* @param {Object} props
|
||||||
* @param { 'up' | 'down' | 'cannot resolve'} props.status - The status for the label
|
* @param {'up' | 'down' | 'paused' | 'pending' | 'cannot resolve' | 'published' | 'unpublished'} props.status - The status for the label
|
||||||
* @param {string} props.text - The text of the label
|
* @param {string} props.text - The text of the label
|
||||||
* @returns {JSX.Element}
|
* @returns {JSX.Element}
|
||||||
* @example
|
* @example
|
||||||
@@ -128,6 +128,8 @@ const statusToTheme = {
|
|||||||
paused: "warning",
|
paused: "warning",
|
||||||
pending: "warning",
|
pending: "warning",
|
||||||
"cannot resolve": "error",
|
"cannot resolve": "error",
|
||||||
|
published: "success",
|
||||||
|
unpublished: "error",
|
||||||
};
|
};
|
||||||
|
|
||||||
const StatusLabel = ({ status, text, customStyles }) => {
|
const StatusLabel = ({ status, text, customStyles }) => {
|
||||||
@@ -156,7 +158,7 @@ const StatusLabel = ({ status, text, customStyles }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
StatusLabel.propTypes = {
|
StatusLabel.propTypes = {
|
||||||
status: PropTypes.oneOf(["up", "down", "paused", "pending", "cannot resolve"]),
|
status: PropTypes.oneOf(["up", "down", "paused", "pending", "cannot resolve", "published", "unpublished"]),
|
||||||
text: PropTypes.string,
|
text: PropTypes.string,
|
||||||
customStyles: PropTypes.object,
|
customStyles: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import DataTable from "../../../../../Components/Table";
|
import DataTable from "../../../../../Components/Table";
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { ColoredLabel } from "../../../../../Components/Label";
|
import { StatusLabel } from "../../../../../Components/Label";
|
||||||
import ArrowOutwardIcon from "@mui/icons-material/ArrowOutward";
|
import ArrowOutwardIcon from "@mui/icons-material/ArrowOutward";
|
||||||
import { Stack, Typography } from "@mui/material";
|
import { Stack, Typography } from "@mui/material";
|
||||||
const StatusPagesTable = ({ data }) => {
|
const StatusPagesTable = ({ data }) => {
|
||||||
@@ -66,12 +66,11 @@ const StatusPagesTable = ({ data }) => {
|
|||||||
id: "status",
|
id: "status",
|
||||||
content: "Status",
|
content: "Status",
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
|
const status = row.isPublished ? "published" : "unpublished";
|
||||||
return (
|
return (
|
||||||
<ColoredLabel
|
<StatusLabel
|
||||||
label={row.isPublished ? "Published" : "Unpublished"}
|
status={status}
|
||||||
color={
|
text={row.isPublished ? "Published" : "Unpublished"}
|
||||||
row.isPublished ? theme.palette.success.main : theme.palette.warning.main
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user