Reverted Level to only utas placement test exercises, Speaking, bug fixes, placeholder

This commit is contained in:
Carlos-Mesquita
2024-11-10 04:24:23 +00:00
parent c507eae507
commit 322d7905c3
39 changed files with 1251 additions and 279 deletions

View File

@@ -12,6 +12,7 @@ interface Props {
className?: string;
disabled?: boolean;
max?: number;
min?: number;
name: string;
onChange: (value: string) => void;
}
@@ -28,6 +29,7 @@ export default function Input({
className,
roundness = "full",
disabled = false,
min,
onChange,
}: Props) {
const [showPassword, setShowPassword] = useState(false);
@@ -90,7 +92,7 @@ export default function Input({
value={value}
max={max}
onChange={(e) => onChange(e.target.value)}
min={type === "number" ? 0 : undefined}
min={type === "number" ? (min ?? 0) : undefined}
placeholder={placeholder}
className={clsx(
"px-8 py-6 text-sm font-normal bg-white border border-mti-gray-platinum focus:outline-none",