diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index f224e2ba..e703ff14 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -47,7 +47,7 @@ const Input = ({ {label && (
- + {label} {required && ( diff --git a/frontend/src/modals/WrapperModal.tsx b/frontend/src/modals/WrapperModal.tsx index c2b22a90..eee205f0 100644 --- a/frontend/src/modals/WrapperModal.tsx +++ b/frontend/src/modals/WrapperModal.tsx @@ -1,12 +1,21 @@ import React, { useEffect, useRef } from 'react'; import Exit from '../assets/exit.svg'; -import { WrapperModalPropsType } from './types'; + +interface WrapperModalPropsType { + children: React.ReactNode; + close: () => void; + isPerformingTask?: boolean; + className?: string; + contentClassName?: string; +} export default function WrapperModal({ children, close, - isPerformingTask, + isPerformingTask = false, + className = 'sm:w-[512px]', // Default width, but can be overridden + contentClassName = 'p-8', // Default padding, but can be overridden }: WrapperModalPropsType) { const modalRef = useRef(null); @@ -40,17 +49,19 @@ export default function WrapperModal({
{!isPerformingTask && ( )} - {children} +
+ {children} +
);