Unilateral flag is now editable
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user