From 28489d244c5e4be9562bf35708c98bb83036ecdb Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Wed, 19 Feb 2025 04:10:14 +0530 Subject: [PATCH] (feat:input) consistent colors --- frontend/src/components/Input.tsx | 2 +- frontend/src/modals/WrapperModal.tsx | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) 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} +
);