update bookmark button to use active/activeColor
This commit is contained in:
@@ -136,6 +136,8 @@ export const BookmarkButton = memo(function BookmarkButton({
|
|||||||
<PostControlButton
|
<PostControlButton
|
||||||
testID="postBookmarkBtn"
|
testID="postBookmarkBtn"
|
||||||
big={big}
|
big={big}
|
||||||
|
active={isBookmarked}
|
||||||
|
activeColor={t.palette.primary_500}
|
||||||
label={
|
label={
|
||||||
isBookmarked
|
isBookmarked
|
||||||
? _(msg`Remove from saved posts`)
|
? _(msg`Remove from saved posts`)
|
||||||
@@ -143,10 +145,7 @@ export const BookmarkButton = memo(function BookmarkButton({
|
|||||||
}
|
}
|
||||||
onPress={onHandlePress}
|
onPress={onHandlePress}
|
||||||
hitSlop={hitSlop}>
|
hitSlop={hitSlop}>
|
||||||
<PostControlButtonIcon
|
<PostControlButtonIcon icon={isBookmarked ? BookmarkFilled : Bookmark} />
|
||||||
fill={isBookmarked ? t.palette.primary_500 : undefined}
|
|
||||||
icon={isBookmarked ? BookmarkFilled : Bookmark}
|
|
||||||
/>
|
|
||||||
</PostControlButton>
|
</PostControlButton>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user