From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/app/create-app-dialog/index.tsx | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/app/components/app/create-app-dialog/index.tsx b/app/components/app/create-app-dialog/index.tsx index 794bbbf..acc3650 100644 --- a/app/components/app/create-app-dialog/index.tsx +++ b/app/components/app/create-app-dialog/index.tsx @@ -1,6 +1,4 @@ 'use client' -import { useCallback } from 'react' -import { useKeyPress } from 'ahooks' import AppList from './app-list' import FullScreenModal from '@/app/components/base/fullscreen-modal' @@ -12,13 +10,6 @@ } const CreateAppTemplateDialog = ({ show, onSuccess, onClose, onCreateFromBlank }: CreateAppDialogProps) => { - const handleEscKeyPress = useCallback(() => { - if (show) - onClose() - }, [show, onClose]) - - useKeyPress('esc', handleEscKeyPress) - return ( <FullScreenModal open={show} -- Gitblit v1.8.0