Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnZ9865 committed Oct 31, 2024
1 parent ce79627 commit 42655b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/admin/dashboards/dashboard/toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const Toolbar = ({
COLORS[tag.value]?.background,
COLORS[tag.value]?.text,
COLORS[tag.value]?.hover,
"text-nowrap"
"text-nowrap",
)}
>
{tag.text}
Expand Down
8 changes: 2 additions & 6 deletions src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,12 @@ export interface ButtonProps
}

const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
(
{ className, variant, size, asChild = false, ...props },
ref,
) => {
({ className, variant, size, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button";


return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
/>
Expand Down

0 comments on commit 42655b9

Please sign in to comment.