Skip to content

Commit

Permalink
fix(frontend): attachment download icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaBosak233 committed Jun 2, 2024
1 parent 3a65b31 commit a922027
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/components/modals/ChallengeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,15 @@ export default function ChallengeModal(props: ChallengeModalProps) {
>
<ActionIcon
variant="transparent"
color={challenge?.category?.color}
onClick={() => {
window.open(
`${import.meta.env.VITE_BASE_API}/media/challenges/${challenge?.id}/${challenge?.attachment?.name}`
);
}}
>
<MDIcon>download</MDIcon>
<MDIcon c={challenge?.category?.color}>
download
</MDIcon>
</ActionIcon>
</Tooltip>
)}
Expand Down

0 comments on commit a922027

Please sign in to comment.