diff --git a/server/test.db b/server/test.db index 3b02c90..24ada2b 100644 Binary files a/server/test.db and b/server/test.db differ diff --git a/src/components/ExerciseModal.tsx b/src/components/ExerciseModal.tsx index d6c59a3..19bb0f3 100644 --- a/src/components/ExerciseModal.tsx +++ b/src/components/ExerciseModal.tsx @@ -7,6 +7,7 @@ import { generateId } from '../utils/uuid'; import FilledInput from './FilledInput'; import { SideSheet } from './ui/SideSheet'; import { Button } from './ui/Button'; +import { Checkbox } from './ui/Checkbox'; interface ExerciseModalProps { isOpen: boolean; @@ -76,7 +77,7 @@ const ExerciseModal: React.FC = ({ isOpen, onClose, onSave, {console.log('ExerciseModal Rendering. isOpen:', isOpen)}
- { @@ -120,7 +121,7 @@ const ExerciseModal: React.FC = ({ isOpen, onClose, onSave,
{newType === ExerciseType.BODYWEIGHT && ( - setNewBwPercentage(e.target.value)} @@ -128,17 +129,12 @@ const ExerciseModal: React.FC = ({ isOpen, onClose, onSave, /> )} -
- + setIsUnilateral(e.target.checked)} - className="w-5 h-5 rounded border-2 border-outline bg-surface-container-high checked:bg-primary checked:border-primary cursor-pointer" + label={t('unilateral_exercise', lang) || 'Unilateral exercise'} /> -
diff --git a/src/components/FilledInput.tsx b/src/components/FilledInput.tsx index ffa6a8a..94179db 100644 --- a/src/components/FilledInput.tsx +++ b/src/components/FilledInput.tsx @@ -16,9 +16,15 @@ interface FilledInputProps { autocapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters"; autoComplete?: string; rightElement?: React.ReactNode; + multiline?: boolean; + rows?: number; } -const FilledInput: React.FC = ({ label, value, onChange, onClear, onFocus, onBlur, type = "number", icon, autoFocus, step, inputMode, autocapitalize, autoComplete, rightElement }) => { +const FilledInput: React.FC = ({ + label, value, onChange, onClear, onFocus, onBlur, type = "number", icon, + autoFocus, step, inputMode, autocapitalize, autoComplete, rightElement, + multiline = false, rows = 3 +}) => { const id = useId(); const handleClear = () => { @@ -30,25 +36,41 @@ const FilledInput: React.FC = ({ label, value, onChange, onCle }; return ( -
-