mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 20:38:32 +00:00
fix(frontend): remove unused comments
This commit is contained in:
parent
2ba5c6660a
commit
d3c8ff5489
@ -19,8 +19,6 @@ import {
|
||||
export interface DialogHook {
|
||||
open: OpenDialog;
|
||||
close: CloseDialog;
|
||||
// alert: OpenAlertDialog;
|
||||
// prompt: OpenPromptDialog;
|
||||
confirm: OpenConfirmDialog;
|
||||
}
|
||||
|
||||
@ -32,16 +30,6 @@ export const useDialogs = (): DialogHook => {
|
||||
}
|
||||
|
||||
const { open, close } = context;
|
||||
// const alert = React.useCallback<OpenAlertDialog>(
|
||||
// async (msg, { onClose, ...options } = {}) =>
|
||||
// open(AlertDialog, { ...options, msg }, { onClose }),
|
||||
// [open],
|
||||
// );
|
||||
// const prompt = React.useCallback<OpenPromptDialog>(
|
||||
// async (msg, { onClose, ...options } = {}) =>
|
||||
// open(PromptDialog, { ...options, msg }, { onClose }),
|
||||
// [open],
|
||||
// );
|
||||
const confirm = React.useCallback<OpenConfirmDialog>(
|
||||
async (msg, { onClose, ...options } = {}) =>
|
||||
open(ConfirmDialog, { ...options, msg }, { onClose }),
|
||||
@ -52,8 +40,6 @@ export const useDialogs = (): DialogHook => {
|
||||
() => ({
|
||||
open,
|
||||
close,
|
||||
// alert,
|
||||
// prompt,
|
||||
confirm,
|
||||
}),
|
||||
[close, open, confirm],
|
||||
|
Loading…
Reference in New Issue
Block a user