From 03ed6ae29b0513cd6d13ef1e02cdb1126f627f8d Mon Sep 17 00:00:00 2001 From: tche Date: Thu, 26 Dec 2024 21:49:36 +0100 Subject: [PATCH] feat: make xpIcon green --- src/components/ProfilePage/QuestCard/QuestCard.tsx | 1 + src/components/ProfilePage/QuestCard/XPRewardsInfo.tsx | 4 +++- src/components/illustrations/XPIcon.tsx | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/ProfilePage/QuestCard/QuestCard.tsx b/src/components/ProfilePage/QuestCard/QuestCard.tsx index 9b90113be..da6f684b7 100644 --- a/src/components/ProfilePage/QuestCard/QuestCard.tsx +++ b/src/components/ProfilePage/QuestCard/QuestCard.tsx @@ -253,6 +253,7 @@ export const QuestCard = ({ data }: QuestCardDataProps) => { }) } active={true} + color={completed ? '#00B849' : undefined} /> )} diff --git a/src/components/ProfilePage/QuestCard/XPRewardsInfo.tsx b/src/components/ProfilePage/QuestCard/XPRewardsInfo.tsx index 7d6174aec..92f050898 100644 --- a/src/components/ProfilePage/QuestCard/XPRewardsInfo.tsx +++ b/src/components/ProfilePage/QuestCard/XPRewardsInfo.tsx @@ -9,6 +9,7 @@ interface XPRewardsInfoProps { tooltip?: string; active?: boolean; completed?: boolean; + color?: string; } export const XPRewardsInfo: React.FC> = ({ @@ -18,6 +19,7 @@ export const XPRewardsInfo: React.FC> = ({ active, children, completed, + color, }) => { return ( @@ -30,7 +32,7 @@ export const XPRewardsInfo: React.FC> = ({ {points} - {children ? children : } + {children ? children : } ); diff --git a/src/components/illustrations/XPIcon.tsx b/src/components/illustrations/XPIcon.tsx index 40681251c..5784cffbf 100644 --- a/src/components/illustrations/XPIcon.tsx +++ b/src/components/illustrations/XPIcon.tsx @@ -1,4 +1,6 @@ -export const XPIcon = () => { +export const XPIcon = ({ colorFill }: { colorFill?: string }) => { + const color = colorFill ?? '#31007A'; + return ( { fill="none" xmlns="http://www.w3.org/2000/svg" > - +