Fixes on create component tests

This commit is contained in:
adilallo
2026-02-02 13:08:55 -07:00
parent a8eb9e192b
commit 3b8f2e791f
10 changed files with 54 additions and 72 deletions
@@ -99,6 +99,8 @@ const ContentLockupContainer = memo<ContentLockupProps>(
titleContainer: "flex items-center justify-start w-full",
title:
"font-bricolage-grotesque font-bold text-[28px] leading-[36px] tracking-[0] text-[var(--color-content-default-primary)] text-left",
subtitle:
"font-inter font-normal text-[16px] leading-[24px] tracking-[0] text-[var(--color-content-default-tertiary)] text-left",
description:
"font-inter font-normal text-[16px] leading-[24px] tracking-[0] text-[var(--color-content-default-tertiary)] text-left",
shape: "w-[16px] h-[16px]",
+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}
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */
export interface InputWithCounterProps {
label?: string;
placeholder?: string;
@@ -8,3 +9,4 @@ export interface InputWithCounterProps {
className?: string;
inputClassName?: string;
}
/* eslint-enable no-unused-vars, @typescript-eslint/no-unused-vars */
@@ -1,4 +1,3 @@
import { getAssetPath } from "../../../lib/assetUtils";
import type { InputWithCounterProps } from "./InputWithCounter.types";
export function InputWithCounterView({
@@ -30,11 +30,7 @@ export function ModalFooterView({
{/* Back Button - Absolutely positioned bottom left */}
{showBackButton && (
<div className="absolute left-[16px] top-[12px]">
<Button
variant="outlined"
size="medium"
onClick={onBack}
>
<Button variant="outlined" size="medium" onClick={onBack}>
{defaultBackText}
</Button>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
export type StepperActive = 1 | 2 | 3 | 4 | 5;
export type StepperActive = number;
export interface StepperProps {
active?: StepperActive;