diff --git a/src/Components/Alert/index.jsx b/src/Components/Alert/index.jsx index 54fba31b8..0b32fe2b1 100644 --- a/src/Components/Alert/index.jsx +++ b/src/Components/Alert/index.jsx @@ -36,8 +36,8 @@ const Alert = ({ variant, title, body, isToast, hasIcon = true, onClick }) => { */ const text = theme.palette.secondary.contrastText; - const border = theme.palette.alert.border; - const bg = theme.palette.alert.background; + const border = theme.palette.alert.contrastText; + const bg = theme.palette.alert.main; const icon = icons[variant]; return ( diff --git a/src/Pages/StatusPage/Create/Components/Tabs/SectionStack.jsx b/src/Pages/StatusPage/Create/Components/Tabs/ConfigStack.jsx similarity index 86% rename from src/Pages/StatusPage/Create/Components/Tabs/SectionStack.jsx rename to src/Pages/StatusPage/Create/Components/Tabs/ConfigStack.jsx index 9708d8a85..6eb64a519 100644 --- a/src/Pages/StatusPage/Create/Components/Tabs/SectionStack.jsx +++ b/src/Pages/StatusPage/Create/Components/Tabs/ConfigStack.jsx @@ -4,7 +4,7 @@ import PropTypes from "prop-types"; import { useTheme } from "@emotion/react"; // This can be used to add any extra/additional section/stacks on top of existing sections on the tab -const SectionStack = ({ title, description, children }) => { +const ConfigStack = ({ title, description, children }) => { const theme = useTheme(); return ( @@ -17,10 +17,10 @@ const SectionStack = ({ title, description, children }) => { ); }; -SectionStack.propTypes = { +ConfigStack.propTypes = { title: PropTypes.string.isRequired, // Title must be a string and is required description: PropTypes.string.isRequired, // Description must be a string and is required children: PropTypes.node.isRequired, }; -export default SectionStack; +export default ConfigStack; diff --git a/src/Pages/StatusPage/Create/Components/Tabs/Content.jsx b/src/Pages/StatusPage/Create/Components/Tabs/Content.jsx index 3a95a07b0..f6945ab5b 100644 --- a/src/Pages/StatusPage/Create/Components/Tabs/Content.jsx +++ b/src/Pages/StatusPage/Create/Components/Tabs/Content.jsx @@ -7,7 +7,7 @@ import Checkbox from "../../../../../Components/Inputs/Checkbox"; // Utils import { useState } from "react"; import { useTheme } from "@emotion/react"; -import SectionStack from "./SectionStack"; +import ConfigStack from "./ConfigStack"; const Content = ({ tabValue, form, @@ -34,7 +34,7 @@ const Content = ({ return ( - @@ -68,8 +68,8 @@ const Content = ({ setSelectedMonitors={handleMonitorsChange} /> - - + @@ -89,7 +89,7 @@ const Content = ({ onChange={handleFormChange} /> - + ); diff --git a/src/Utils/Theme/constants.js b/src/Utils/Theme/constants.js index b0124c645..a02827c7f 100644 --- a/src/Utils/Theme/constants.js +++ b/src/Utils/Theme/constants.js @@ -292,11 +292,11 @@ const newSemanticColors = { }, }, alert: { - background: { + main: { light: newColors.gray200, dark: newColors.gray900, }, - border: { + contrastText: { light: newColors.blueGray600, dark: newColors.blueGray900, },