Skip to content

Commit

Permalink
Fix issue with ui/Dialog typing preventing deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
SARodrigues committed Oct 24, 2023
1 parent 607d15c commit bf17593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const Dialog = DialogPrimitive.Root;

const DialogTrigger = DialogPrimitive.Trigger;

const DialogPortal = ({ className, ...props }: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal className={cn(className)} {...props} />
const DialogPortal = (props: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal {...props} />
);
DialogPortal.displayName = DialogPrimitive.Portal.displayName;

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ui/sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const SheetTrigger = SheetPrimitive.Trigger;

const SheetClose = SheetPrimitive.Close;

const SheetPortal = ({ className, ...props }: SheetPrimitive.DialogPortalProps) => (
<SheetPrimitive.Portal className={cn(className)} {...props} />
const SheetPortal = (props: SheetPrimitive.DialogPortalProps) => (
<SheetPrimitive.Portal {...props} />
);
SheetPortal.displayName = SheetPrimitive.Portal.displayName;

Expand Down

0 comments on commit bf17593

Please sign in to comment.