Add back button to deselect exercises
This commit is contained in:
parent
c2accf7202
commit
e7c0460166
|
@ -11,7 +11,7 @@ export default function DrawerHeader({
|
||||||
}: {
|
}: {
|
||||||
name: string;
|
name: string;
|
||||||
children?: JSX.Element | JSX.Element[];
|
children?: JSX.Element | JSX.Element[];
|
||||||
ids?: number[],
|
ids?: unknown[],
|
||||||
unSelect?: () => void,
|
unSelect?: () => void,
|
||||||
}) {
|
}) {
|
||||||
const navigation = useNavigation<DrawerNavigationProp<DrawerParams>>();
|
const navigation = useNavigation<DrawerNavigationProp<DrawerParams>>();
|
||||||
|
|
|
@ -125,6 +125,8 @@ export default function ExerciseList() {
|
||||||
<>
|
<>
|
||||||
<DrawerHeader
|
<DrawerHeader
|
||||||
name={names.length > 0 ? `${names.length} selected` : "Exercises"}
|
name={names.length > 0 ? `${names.length} selected` : "Exercises"}
|
||||||
|
ids={names}
|
||||||
|
unSelect={() => setNames([])}
|
||||||
>
|
>
|
||||||
<ListMenu
|
<ListMenu
|
||||||
onClear={clear}
|
onClear={clear}
|
||||||
|
|
Loading…
Reference in New Issue