Skip to content

Commit

Permalink
feat: show different clap icon
Browse files Browse the repository at this point in the history
refs:
- PR-039
  • Loading branch information
robertu7 committed May 16, 2024
1 parent 994bb67 commit 2f02027
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useRef } from 'react'
import { useIntl } from 'react-intl'

import { ReactComponent as IconClap } from '@/public/static/icons/24px/clap.svg'
import { ReactComponent as IconClapFill } from '@/public/static/icons/24px/clap-fill.svg'
import { ReactComponent as IconSuperLike } from '@/public/static/icons/superlike.svg'
import { TEST_ID } from '~/common/enums'
import { capitalizeFirstLetter, numAbbr } from '~/common/utils'
Expand Down Expand Up @@ -82,7 +83,11 @@ const AppreciateButton: React.FC<AppreciateButtonProps> = ({
}}
>
<Icon
icon={IconClap}
icon={
(typeof count === 'number' && count <= 0) || !count
? IconClap
: IconClapFill
}
className={[styles.iconLike, clapStyles.iconLike].join(' ')}
size={iconSize}
/>
Expand Down

0 comments on commit 2f02027

Please sign in to comment.