Fixes on create component tests

This commit is contained in:
adilallo committed 2026-02-02 13:08:55 -07:00
1 parent a8eb9e192b
commit 3b8f2e791f
10 files changed
+54 -72

No files matched your search

+2 -3
View File
@@ -50,8 +50,7 @@ const CreateContainer = memo<CreateProps>(
if (!isOpen) return;
// Store previous active element
previousActiveElementRef.current =
document.activeElement as HTMLElement;
previousActiveElementRef.current = document.activeElement as HTMLElement;
// Lock body scroll
document.body.style.overflow = "hidden";
@@ -108,13 +107,13 @@ const CreateContainer = memo<CreateProps>(
};
}, [isOpen]);
return (
<CreateView
isOpen={isOpen}
onClose={onClose}
title={title}
description={description}
// eslint-disable-next-line react/no-children-prop
children={children}
footerContent={footerContent}
showBackButton={showBackButton}