fix: rename DialogContent interface to DialogContentProps

This commit is contained in:
p-sw 2024-06-27 13:14:57 +09:00
parent 5debb80330
commit d9d6d033f9

View File

@ -170,11 +170,11 @@ const [dialogContentVariant, resolveDialogContentVariant] = vcn({
},
});
interface DialogContent
interface DialogContentProps
extends React.ComponentPropsWithoutRef<"div">,
Omit<VariantProps<typeof dialogContentVariant>, "opened"> {}
const DialogContent = React.forwardRef<HTMLDivElement, DialogContent>(
const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(
(props, ref) => {
const [{ opened }] = useDialogContext();
const [variantProps, otherPropsCompressed] = resolveDialogContentVariant({