Skip to content

Commit ba42fa7

Browse files
jacobparisericallam
authored andcommitted
fix: why do I have to fix these components again???
1 parent 0a5ec8c commit ba42fa7

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

apps/webapp/app/components/primitives/Alert.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ const Alert = AlertDialogPrimitive.Root;
88

99
const AlertTrigger = AlertDialogPrimitive.Trigger;
1010

11-
const AlertPortal = ({
12-
className,
13-
children,
14-
...props
15-
}: AlertDialogPrimitive.AlertDialogPortalProps) => (
16-
<AlertDialogPrimitive.Portal className={cn(className)} {...props}>
11+
const AlertPortal = ({ children, ...props }: AlertDialogPrimitive.AlertDialogPortalProps) => (
12+
<AlertDialogPrimitive.Portal {...props}>
1713
<div className="fixed inset-0 z-50 flex items-end justify-center sm:items-center">
1814
{children}
1915
</div>

apps/webapp/app/components/primitives/Dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const Dialog = DialogPrimitive.Root;
1010

1111
const DialogTrigger = DialogPrimitive.Trigger;
1212

13-
const DialogPortal = ({ className, children, ...props }: DialogPrimitive.DialogPortalProps) => (
14-
<DialogPrimitive.Portal className={cn(className)} {...props}>
13+
const DialogPortal = ({ children, ...props }: DialogPrimitive.DialogPortalProps) => (
14+
<DialogPrimitive.Portal {...props}>
1515
<div className="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
1616
{children}
1717
</div>

apps/webapp/app/components/primitives/Sheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ interface SheetPortalProps
2828
extends SheetPrimitive.DialogPortalProps,
2929
VariantProps<typeof portalVariants> {}
3030

31-
const SheetPortal = ({ position, className, children, ...props }: SheetPortalProps) => (
32-
<SheetPrimitive.Portal className={cn(className)} {...props}>
31+
const SheetPortal = ({ position, children, ...props }: SheetPortalProps) => (
32+
<SheetPrimitive.Portal {...props}>
3333
<div className={portalVariants({ position })}>{children}</div>
3434
</SheetPrimitive.Portal>
3535
);

0 commit comments

Comments
 (0)