chore: fix linter

This commit is contained in:
Johnny 2025-11-30 10:15:20 +08:00
parent 1ef11f7470
commit 2b7b70ebfe
1 changed files with 13 additions and 13 deletions

View File

@ -42,19 +42,19 @@ const ReactionSelector = observer((props: ReactionSelectorProps) => {
</PopoverTrigger> </PopoverTrigger>
<PopoverContent align="center" className="max-w-[90vw] sm:max-w-md"> <PopoverContent align="center" className="max-w-[90vw] sm:max-w-md">
<div className="grid grid-cols-4 sm:grid-cols-6 md:grid-cols-8 gap-1 max-h-64 overflow-y-auto"> <div className="grid grid-cols-4 sm:grid-cols-6 md:grid-cols-8 gap-1 max-h-64 overflow-y-auto">
{instanceMemoRelatedSetting.reactions.map((reactionType) => ( {instanceMemoRelatedSetting.reactions.map((reactionType) => (
<button <button
type="button" type="button"
key={reactionType} key={reactionType}
className={cn( className={cn(
"inline-flex w-auto text-base cursor-pointer rounded px-1 text-muted-foreground hover:opacity-80 transition-colors", "inline-flex w-auto text-base cursor-pointer rounded px-1 text-muted-foreground hover:opacity-80 transition-colors",
hasReacted(reactionType) && "bg-secondary text-secondary-foreground", hasReacted(reactionType) && "bg-secondary text-secondary-foreground",
)} )}
onClick={() => handleReactionClick(reactionType)} onClick={() => handleReactionClick(reactionType)}
> >
{reactionType} {reactionType}
</button> </button>
))} ))}
</div> </div>
</PopoverContent> </PopoverContent>
</Popover> </Popover>