Skip to content

Commit

Permalink
Fixed nested button error in dialog, closes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlmao committed Mar 19, 2023
1 parent 09b8b7c commit de6e1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const Confirm = React.forwardRef<
className={cn("z-50 w-full flex justify-end", className)}
{...props}
>
{props.children || <Button variant="success">Confirm</Button>}
{props.children || "Confirm"}
</DialogPrimitive.Close>
));
Confirm.displayName = "Dialog.Confirm";
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export { RadioGroup } from "./RadioGroup";
export { Label } from "./Label";
export { Select } from "./Select";
export { Switch } from "./Switch";
export { Textarea } from "./Textarea";
export { TextArea } from "./TextArea";
export { Tabs } from "./Tabs";
export { Input } from "./Input";
export { Toggle } from "./Toggle";

0 comments on commit de6e1b3

Please sign in to comment.