Skip to content

Commit

Permalink
Merge pull request #26 from Vizzuality/fix-radix-ui-issue-preventing-…
Browse files Browse the repository at this point in the history
…deployment

Fix issue with ui/Dialog typing preventing deployments
  • Loading branch information
SARodrigues authored Oct 24, 2023
2 parents 607d15c + bf17593 commit b21abfb
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 b21abfb

Please sign in to comment.