From 741419b77775fdb05dd4461794f66bc77e65a19b Mon Sep 17 00:00:00 2001 From: JimmFly Date: Tue, 20 Dec 2022 18:39:47 +0800 Subject: [PATCH] chore: update noResult svg --- .../src/components/quick-search/noResult.svg | 24 ----- .../components/quick-search/noResultSVG.tsx | 95 +++++++++++++++++++ .../src/components/quick-search/results.tsx | 10 +- 3 files changed, 97 insertions(+), 32 deletions(-) delete mode 100644 packages/app/src/components/quick-search/noResult.svg create mode 100644 packages/app/src/components/quick-search/noResultSVG.tsx diff --git a/packages/app/src/components/quick-search/noResult.svg b/packages/app/src/components/quick-search/noResult.svg deleted file mode 100644 index 7412a1b1f0..0000000000 --- a/packages/app/src/components/quick-search/noResult.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/app/src/components/quick-search/noResultSVG.tsx b/packages/app/src/components/quick-search/noResultSVG.tsx new file mode 100644 index 0000000000..16aabb73d9 --- /dev/null +++ b/packages/app/src/components/quick-search/noResultSVG.tsx @@ -0,0 +1,95 @@ +export const NoResultSVG = () => { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + ); +}; diff --git a/packages/app/src/components/quick-search/results.tsx b/packages/app/src/components/quick-search/results.tsx index 8cf3d2591a..4252943207 100644 --- a/packages/app/src/components/quick-search/results.tsx +++ b/packages/app/src/components/quick-search/results.tsx @@ -9,8 +9,7 @@ import { config } from './config'; import { useGoToPage } from '@/providers/app-state-provider/hooks'; import { usePageList } from '@/providers/app-state-provider/usePageList'; import { useLoadWorkspace } from '@/providers/app-state-provider/hooks'; -import NextImage from 'next/image'; -import noResultSVG from './noResult.svg'; +import { NoResultSVG } from './noResultSVG'; import { usePageHelper } from '@/hooks/use-page-helper'; export const Results = (props: { query: string; @@ -76,12 +75,7 @@ export const Results = (props: { ) : ( Find 0 result - + ) ) : (