Add back button to deselect exercises

This commit is contained in:
Brandon Presley 2024-02-21 17:57:59 +13:00
parent c2accf7202
commit e7c0460166
2 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export default function DrawerHeader({
}: {
name: string;
children?: JSX.Element | JSX.Element[];
ids?: number[],
ids?: unknown[],
unSelect?: () => void,
}) {
const navigation = useNavigation<DrawerNavigationProp<DrawerParams>>();

View File

@ -125,6 +125,8 @@ export default function ExerciseList() {
<>
<DrawerHeader
name={names.length > 0 ? `${names.length} selected` : "Exercises"}
ids={names}
unSelect={() => setNames([])}
>
<ListMenu
onClear={clear}