chore: clean up console modal component (#3395)

* chore: cleanup console modal component

* chore: cleanup unused import
This commit is contained in:
Faisal Amir 2024-08-19 09:27:25 +07:00 committed by GitHub
parent 701d78cebd
commit 8b51d7fe75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,13 +33,16 @@ const Modal = ({
<DialogPrimitive.Portal>
<DialogPrimitive.Overlay className="modal__overlay" />
<DialogPrimitive.Content
aria-describedby={undefined}
className={twMerge(
'modal__content',
fullPage && 'modal__content--fullpage',
className
)}
>
<div className="modal__title">{title}</div>
<DialogPrimitive.Title className="modal__title">
{title}
</DialogPrimitive.Title>
{content}
{!hideClose && (
<ModalClose asChild>