🔧 fix(dialog.tsx): remove unnecessary CSS classes 'noundo' and 'nocopy' to simplify the code and improve maintainability

🔧 fix(codeAreaModal/index.tsx): remove unnecessary CSS classes 'nopan', 'nodrag', 'noundo', and 'nocopy' to simplify the code and improve maintainability
This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-18 14:26:27 -03:00
commit 14c9f863dc
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ const DialogOverlay = React.forwardRef<
<DialogPrimitive.Overlay
ref={ref}
className={cn(
"fixed inset-0 bottom-0 left-0 right-0 top-0 z-50 overflow-auto bg-blur-shared backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
"noundo nocopy fixed inset-0 bottom-0 left-0 right-0 top-0 z-50 overflow-auto bg-blur-shared backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
className
)}
{...props}

View file

@ -159,7 +159,7 @@ export default function CodeAreaModal({
onChange={(value) => {
setCode(value);
}}
className="nopan nodrag noundo nocopy h-full w-full rounded-lg border-[1px] border-gray-300 custom-scroll dark:border-gray-600"
className="h-full w-full rounded-lg border-[1px] border-gray-300 custom-scroll dark:border-gray-600"
/>
</div>
<div