diff --git a/src/Components/Label/index.jsx b/src/Components/Label/index.jsx index c651b93e7..354331543 100644 --- a/src/Components/Label/index.jsx +++ b/src/Components/Label/index.jsx @@ -128,6 +128,8 @@ const statusToTheme = { paused: "warning", pending: "warning", "cannot resolve": "error", + published: "success", + unpublished: "error", }; const StatusLabel = ({ status, text, customStyles }) => { @@ -156,7 +158,7 @@ const StatusLabel = ({ status, text, customStyles }) => { }; 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, customStyles: PropTypes.object, }; diff --git a/src/Pages/StatusPage/StatusPages/Components/StatusPagesTable/index.jsx b/src/Pages/StatusPage/StatusPages/Components/StatusPagesTable/index.jsx index fd9b27cb1..7bee4be8f 100644 --- a/src/Pages/StatusPage/StatusPages/Components/StatusPagesTable/index.jsx +++ b/src/Pages/StatusPage/StatusPages/Components/StatusPagesTable/index.jsx @@ -66,7 +66,7 @@ const StatusPagesTable = ({ data }) => { id: "status", content: "Status", render: (row) => { - const status = row.isPublished ? "up" : "down"; + const status = row.isPublished ? "published" : "unpublished"; return (