fix(dialog): add missing displayName on ref forwarded components

This commit is contained in:
p-sw 2024-07-12 01:01:38 +09:00
parent 46430bec41
commit 78ea14c568

View File

@ -129,6 +129,7 @@ const DialogOverlay = React.forwardRef<HTMLDivElement, DialogOverlay>(
);
},
);
DialogOverlay.displayName = "DialogOverlay";
/**
* =========================
@ -204,6 +205,7 @@ const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(
);
},
);
DialogContent.displayName = "DialogContent";
/**
* =========================
@ -268,6 +270,8 @@ const DialogHeader = React.forwardRef<HTMLElement, DialogHeaderProps>(
},
);
DialogHeader.displayName = "DialogHeader";
/**
* =========================
* DialogTitle / DialogSubtitle
@ -342,6 +346,7 @@ const DialogTitle = React.forwardRef<HTMLHeadingElement, DialogTitleProps>(
);
},
);
DialogTitle.displayName = "DialogTitle";
const DialogSubtitle = React.forwardRef<
HTMLHeadingElement,
@ -360,6 +365,7 @@ const DialogSubtitle = React.forwardRef<
</h2>
);
});
DialogSubtitle.displayName = "DialogSubtitle";
/**
* =========================
@ -401,6 +407,7 @@ const DialogFooter = React.forwardRef<HTMLDivElement, DialogFooterProps>(
);
},
);
DialogFooter.displayName = "DialogFooter";
interface DialogControllers {
context: IDialogContext;