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" > - +