From d2905b2d1a8998a182181329d73d0c4752f2cb20 Mon Sep 17 00:00:00 2001 From: Tim Chamberlain Date: Fri, 6 Jan 2023 13:12:29 -0600 Subject: [PATCH] SPRINT-18: fixed pie chart dot colors --- src/qqq/components/legacy/MDBadgeDot/index.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/qqq/components/legacy/MDBadgeDot/index.tsx b/src/qqq/components/legacy/MDBadgeDot/index.tsx index 5d39cde..c6e2dea 100644 --- a/src/qqq/components/legacy/MDBadgeDot/index.tsx +++ b/src/qqq/components/legacy/MDBadgeDot/index.tsx @@ -82,8 +82,18 @@ const MDBadgeDot: FC = forwardRef( "dark", ]; - const validColorIndex = validColors.findIndex((el) => el === color); + const colorValues = { + "primary": "#e91e63", + "secondary": "#7b809a", + "info": "#04aaef", + "success": "#4CAF50", + "warning": "#fb8c00", + "error": "#F44335", + "light": "#f0f2f5", + "dark": "#344767" + } as any; + const validColorIndex = validColors.findIndex((el) => el === color); return ( = forwardRef( height={finalSize} borderRadius="50%" mr={1} - sx={{backgroundColor: validColors[validColorIndex]}} + sx={{backgroundColor: colorValues[color]}} />