Manually manage full-text search table
This commit is contained in:
parent
245f8c665d
commit
2f90d6aca9
3 changed files with 223 additions and 84 deletions
|
@ -54,12 +54,12 @@ export const ConfirmationDialog = React.memo(
|
|||
|
||||
const handleAction = React.useCallback(
|
||||
(e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
onClose();
|
||||
if (e.currentTarget.dataset.action) {
|
||||
const actionIndex = parseInt(e.currentTarget.dataset.action, 10);
|
||||
const { action } = actions[actionIndex];
|
||||
action();
|
||||
}
|
||||
onClose();
|
||||
},
|
||||
[onClose, actions]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue