diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index 17e60190..f7b1765e 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -7,6 +7,7 @@ const Input = ({ value, isAutoFocused = false, placeholder, + label, maxLength, className, colorVariant = 'silver', @@ -26,21 +27,30 @@ const Input = ({ thick: 'border-2', }; return ( - - {children} - +
+ + {children} + + {label && ( +
+ + {label} + +
+ )} +
); }; diff --git a/frontend/src/components/ToggleSwitch.tsx b/frontend/src/components/ToggleSwitch.tsx index 02745799..061d2563 100644 --- a/frontend/src/components/ToggleSwitch.tsx +++ b/frontend/src/components/ToggleSwitch.tsx @@ -23,9 +23,12 @@ const ToggleSwitch: React.FC = ({ }) => { return ( ); };