mirror of
https://github.com/usememos/memos.git
synced 2025-12-11 14:46:03 +08:00
chore: fix linter
This commit is contained in:
parent
1ef11f7470
commit
2b7b70ebfe
1 changed files with 13 additions and 13 deletions
|
|
@ -42,19 +42,19 @@ const ReactionSelector = observer((props: ReactionSelectorProps) => {
|
|||
</PopoverTrigger>
|
||||
<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">
|
||||
{instanceMemoRelatedSetting.reactions.map((reactionType) => (
|
||||
<button
|
||||
type="button"
|
||||
key={reactionType}
|
||||
className={cn(
|
||||
"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",
|
||||
)}
|
||||
onClick={() => handleReactionClick(reactionType)}
|
||||
>
|
||||
{reactionType}
|
||||
</button>
|
||||
))}
|
||||
{instanceMemoRelatedSetting.reactions.map((reactionType) => (
|
||||
<button
|
||||
type="button"
|
||||
key={reactionType}
|
||||
className={cn(
|
||||
"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",
|
||||
)}
|
||||
onClick={() => handleReactionClick(reactionType)}
|
||||
>
|
||||
{reactionType}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue