|
|
@ -2,6 +2,7 @@ import React, { useCallback } from 'react';
|
|
|
|
import { useSelect } from 'App/SelectContext';
|
|
|
|
import { useSelect } from 'App/SelectContext';
|
|
|
|
import PageToolbarButton from 'Components/Page/Toolbar/PageToolbarButton';
|
|
|
|
import PageToolbarButton from 'Components/Page/Toolbar/PageToolbarButton';
|
|
|
|
import { icons } from 'Helpers/Props';
|
|
|
|
import { icons } from 'Helpers/Props';
|
|
|
|
|
|
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
|
|
|
|
|
|
|
|
interface MovieIndexSelectAllButtonProps {
|
|
|
|
interface MovieIndexSelectAllButtonProps {
|
|
|
|
label: string;
|
|
|
|
label: string;
|
|
|
@ -30,7 +31,7 @@ function MovieIndexSelectAllButton(props: MovieIndexSelectAllButtonProps) {
|
|
|
|
|
|
|
|
|
|
|
|
return isSelectMode ? (
|
|
|
|
return isSelectMode ? (
|
|
|
|
<PageToolbarButton
|
|
|
|
<PageToolbarButton
|
|
|
|
label={allSelected ? 'Unselect All' : 'Select All'}
|
|
|
|
label={allSelected ? translate('UnselectAll') : translate('SelectAll')}
|
|
|
|
iconName={icon}
|
|
|
|
iconName={icon}
|
|
|
|
onPress={onPress}
|
|
|
|
onPress={onPress}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|