feat: add more buttons to reply
This commit is contained in:
parent
760f4bcccb
commit
6ffa180812
4 changed files with 36 additions and 47 deletions
|
|
@ -11,11 +11,9 @@ import { formatCount } from './utils'
|
|||
|
||||
export default function LikeButton({
|
||||
event,
|
||||
variant = 'normal',
|
||||
canFetch = false
|
||||
}: {
|
||||
event: Event
|
||||
variant?: 'normal' | 'reply'
|
||||
canFetch?: boolean
|
||||
}) {
|
||||
const { t } = useTranslation()
|
||||
|
|
@ -70,8 +68,7 @@ export default function LikeButton({
|
|||
return (
|
||||
<button
|
||||
className={cn(
|
||||
'flex items-center enabled:hover:text-red-400',
|
||||
variant === 'normal' ? 'gap-1' : 'flex-col',
|
||||
'flex items-center enabled:hover:text-red-400 gap-1',
|
||||
hasLiked ? 'text-red-400' : 'text-muted-foreground'
|
||||
)}
|
||||
onClick={like}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue