Skip to content

Commit

Permalink
fix: slot icon in action button group
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 31, 2024
1 parent a17ea00 commit 79b26a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/src/modules/entry-column/social-media-item.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Slot } from "@radix-ui/react-slot"
import { FeedIcon } from "@renderer/components/feed-icon"
import { ActionButton } from "@renderer/components/ui/button"
import { RelativeTime } from "@renderer/components/ui/datetime"
Expand Down Expand Up @@ -123,7 +124,9 @@ const ActionBar = ({ entryId }: { entryId: string }) => {
<ActionButton
icon={
item.icon ? (
<img className="size-4 grayscale" src={item.icon} />
<Slot className="size-4">
{item.icon}
</Slot>
) : (
<i className={item.className} />
)
Expand Down

0 comments on commit 79b26a0

Please sign in to comment.