From c0acdbff4336cf9c7d8f1cc55228395d86516b76 Mon Sep 17 00:00:00 2001 From: Bhwa233 <404174262@qq.com> Date: Sat, 16 Mar 2024 14:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AlgoliaSearchModal.js | 3 +-- components/ShortcutTag.js | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 components/ShortcutTag.js diff --git a/components/AlgoliaSearchModal.js b/components/AlgoliaSearchModal.js index 49cad8b2..8fc62d91 100644 --- a/components/AlgoliaSearchModal.js +++ b/components/AlgoliaSearchModal.js @@ -6,7 +6,6 @@ import { useGlobal } from '@/lib/global' import throttle from 'lodash/throttle' import { siteConfig } from '@/lib/config' import { useHotkeys } from 'react-hotkeys-hook'; -import ShortcutTag from '@/components/ShortcutTag' const ShortCutActions = [ { @@ -254,7 +253,7 @@ export default function AlgoliaSearchModal({ cRef }) { {totalHit === 0 && (
{ ShortCutActions.map((action, index) => { - return
{action.key}
+ return
{action.key}
{action.action}
}) } diff --git a/components/ShortcutTag.js b/components/ShortcutTag.js deleted file mode 100644 index 4e36e8be..00000000 --- a/components/ShortcutTag.js +++ /dev/null @@ -1,7 +0,0 @@ -// 操作提示标签 -import React from 'react'; - -const ShortcutTag = ({ children, className }) => { - return
{children}
-} -export default ShortcutTag \ No newline at end of file