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