Commit 41d42653 authored by SHAWNA MONERO's avatar SHAWNA MONERO
Browse files

still unsure how to fix storybook typing

No related merge requests found
Showing with 8 additions and 0 deletions
+8 -0
...@@ -30,30 +30,37 @@ const CHIP_COLOR_MAP = { ...@@ -30,30 +30,37 @@ const CHIP_COLOR_MAP = {
error: { error: {
background: "#F9EAE7", background: "#F9EAE7",
label: "#C2302E", label: "#C2302E",
borderColor: "#C2302E",
}, },
warn: { warn: {
background: "#FEF8E8", background: "#FEF8E8",
label: "#D87313", label: "#D87313",
borderColor: "##D87313",
}, },
attention: { attention: {
background: "#E2E2E6", background: "#E2E2E6",
label: "#0D1030", label: "#0D1030",
borderColor: "##0D103061",
}, },
neutral: { neutral: {
background: "#F8F8F9", background: "#F8F8F9",
label: "#0D1030", label: "#0D1030",
borderColor: "#0D10301A",
}, },
active: { active: {
background: "#EBEDFA", background: "#EBEDFA",
label: "#3548D4", label: "#3548D4",
borderColor: "#3548D4",
}, },
pending: { pending: {
background: "#FFFEE8", background: "#FFFEE8",
label: "#B09027", label: "#B09027",
borderColor: "#B09027",
}, },
success: { success: {
background: "#E9F6EC", background: "#E9F6EC",
label: "#40A05A", label: "#40A05A",
borderColor: "#40A05A",
}, },
}; };
...@@ -72,6 +79,7 @@ const StyledChip = styled(MuiChip)( ...@@ -72,6 +79,7 @@ const StyledChip = styled(MuiChip)(
props => ({ props => ({
background: CHIP_COLOR_MAP[props["data-variant"]].background, background: CHIP_COLOR_MAP[props["data-variant"]].background,
color: CHIP_COLOR_MAP[props["data-variant"]].label, color: CHIP_COLOR_MAP[props["data-variant"]].label,
borderColor: CHIP_COLOR_MAP[props["data-variant"]].borderColor,
}) })
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment