code: tsx,nextjs,frontends (1 files)

This commit is contained in:
2025-12-25 19:57:03 +00:00
parent 10306b0cd0
commit 3eb5f0edb0

View File

@@ -158,7 +158,7 @@ const DialogClose = forwardRef<HTMLButtonElement, { children?: ReactNode; onClic
({ children, onClick, ...props }, ref) => {
if (children) {
return (
<Box ref={ref as React.Ref<HTMLDivElement>} onClick={onClick} sx={{ display: 'inline-flex', cursor: 'pointer' }}>
<Box ref={ref as unknown as React.Ref<HTMLDivElement>} onClick={onClick} sx={{ display: 'inline-flex', cursor: 'pointer' }}>
{children}
</Box>
)