Unilateral flag is now editable

This commit is contained in:
AG
2025-12-15 23:11:10 +02:00
parent c275804fbc
commit 8d4eed77ea
2 changed files with 77 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ import { Button } from './ui/Button';
import { Card } from './ui/Card';
import { Modal } from './ui/Modal';
import { SideSheet } from './ui/SideSheet';
import { Checkbox } from './ui/Checkbox';
interface ProfileProps {
user: User;
@@ -654,6 +655,14 @@ const Profile: React.FC<ProfileProps> = ({ user, onLogout, lang, onLanguageChang
/>
</div>
)}
<div className="px-1 py-2">
<Checkbox
checked={editingExercise.isUnilateral || false}
onChange={(e) => setEditingExercise({ ...editingExercise, isUnilateral: e.target.checked })}
label={t('unilateral_exercise', lang) || 'Unilateral exercise'}
/>
</div>
</div>
</SideSheet>
)}