Skip to content

Commit

Permalink
fix: asChild props
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk committed Nov 18, 2023
1 parent 996a0b8 commit ed4ce9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/Project/components/PayRewardCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ export const PayRewardCard: React.FC<PayRewardCardProps> = ({
currency={JB_CURRENCIES.USD}
/>
<div className="flex h-5 gap-4 overflow-hidden text-sm">
<DialogTrigger onClick={e => e.stopPropagation()}>
<DialogTrigger onClick={e => e.stopPropagation()} asChild>
<Button
className="whitespace-nowrap"
size="child"
variant="link"
asChild
>
View details
</Button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/Navbar/components/MinimalNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export const MinimalNavbar: React.FC<MinimalNavbarProps> = ({ className }) => {
)}
>
<DropdownMenu open={open} onOpenChange={setOpen}>
<DropdownMenuTrigger>
<Button size="child" variant="ghost" asChild>
<DropdownMenuTrigger asChild>
<Button size="child" variant="ghost">
{!open ? (
<Bars3BottomLeftIcon className="h-6 w-6" />
) : (
Expand Down

0 comments on commit ed4ce9f

Please sign in to comment.