Skip to content

Commit 7ce306d

Browse files
authored
Merge pull request #45 from Logging-Stuff/install-guide
dialog build fix
2 parents 821dd5a + d5cb103 commit 7ce306d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/ui/Dialog/Dialog.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,19 @@ interface IDialogBackgroupProps
3535
VariantProps<typeof overlayVariants> {}
3636

3737
const DialogBackdrop = React.forwardRef<HTMLDivElement, IDialogBackgroupProps>(
38-
(inputProps: IDialogBackgroupProps, forwardedRef) => {
38+
function DialogBackdrop(inputProps: IDialogBackgroupProps, forwardedRef) {
3939
const { variant = "default", className, ...props } = inputProps;
4040

4141
return (
4242
<ReactDialog.Overlay
4343
className={cn(overlayVariants({ variant }), className)}
44+
ref={forwardedRef}
4445
{...props}
4546
/>
4647
);
4748
}
4849
);
50+
DialogBackdrop.displayName = "DialogBackdrop";
4951

5052
const dialogVariants = cva(
5153
`fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2
@@ -88,7 +90,7 @@ interface IDialogContentProps
8890
}
8991

9092
const DialogContent = React.forwardRef<HTMLDivElement, IDialogContentProps>(
91-
(inputProps: IDialogContentProps, forwardedRef) => {
93+
function DialogContent(inputProps: IDialogContentProps, forwardedRef) {
9294
const {
9395
children,
9496
size = "auto",
@@ -114,6 +116,7 @@ const DialogContent = React.forwardRef<HTMLDivElement, IDialogContentProps>(
114116
);
115117
}
116118
);
119+
DialogContent.displayName = "DialogContent";
117120

118121
interface IDialogDescriptionProps extends HTMLAttributes<HTMLDivElement> {}
119122
const DialogDescription = ({

0 commit comments

Comments
 (0)