|
@@ -5,14 +5,14 @@ import { CheckboxType } from '../../interfaces/search';
|
|
|
type Props = {
|
|
type Props = {
|
|
|
selectedPagesCount: number,
|
|
selectedPagesCount: number,
|
|
|
displayPageCount: number,
|
|
displayPageCount: number,
|
|
|
- onClickInvoked?: () => void,
|
|
|
|
|
|
|
+ onClickDeleteButton?: () => void,
|
|
|
onClickSelectAllCheckbox?: () => void,
|
|
onClickSelectAllCheckbox?: () => void,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const DeleteSelectedPageGroup:FC<Props> = (props:Props) => {
|
|
const DeleteSelectedPageGroup:FC<Props> = (props:Props) => {
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
const {
|
|
const {
|
|
|
- onClickInvoked, onClickSelectAllCheckbox, selectedPagesCount, displayPageCount,
|
|
|
|
|
|
|
+ onClickDeleteButton, onClickSelectAllCheckbox, selectedPagesCount, displayPageCount,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
|
|
|
const checkboxType = useMemo(() => {
|
|
const checkboxType = useMemo(() => {
|
|
@@ -46,8 +46,8 @@ const DeleteSelectedPageGroup:FC<Props> = (props:Props) => {
|
|
|
type="button"
|
|
type="button"
|
|
|
className="btn text-danger font-weight-light p-0 ml-3"
|
|
className="btn text-danger font-weight-light p-0 ml-3"
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
- if (onClickInvoked != null) {
|
|
|
|
|
- onClickInvoked();
|
|
|
|
|
|
|
+ if (onClickDeleteButton != null) {
|
|
|
|
|
+ onClickDeleteButton();
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|