|
@@ -8,12 +8,12 @@ type Props = {
|
|
|
pages: IPageHasId[],
|
|
pages: IPageHasId[],
|
|
|
method: 'add' | 'remove',
|
|
method: 'add' | 'remove',
|
|
|
disablePageIds?: string[],
|
|
disablePageIds?: string[],
|
|
|
- onClick: (page: IPageHasId) => void,
|
|
|
|
|
|
|
+ onClickMethodButton: (page: IPageHasId) => void,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const SelectablePagePageList = (props: Props): JSX.Element => {
|
|
export const SelectablePagePageList = (props: Props): JSX.Element => {
|
|
|
const {
|
|
const {
|
|
|
- pages, method, disablePageIds, onClick,
|
|
|
|
|
|
|
+ pages, method, disablePageIds, onClickMethodButton,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
@@ -34,7 +34,7 @@ export const SelectablePagePageList = (props: Props): JSX.Element => {
|
|
|
disabled={disablePageIds?.includes(page._id)}
|
|
disabled={disablePageIds?.includes(page._id)}
|
|
|
onClick={(e) => {
|
|
onClick={(e) => {
|
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
|
- onClick(page);
|
|
|
|
|
|
|
+ onClickMethodButton(page);
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
<span className="material-symbols-outlined">
|
|
<span className="material-symbols-outlined">
|