From 8b8adccc74e6287095022c8b5e2bcce4b902958b Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Fri, 19 Jun 2020 18:11:34 +0600 Subject: [PATCH] [error component][xs]: move it to top level dir so we can easily use it for other components. --- components/{search => }/Error.tsx | 0 components/search/List.tsx | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename components/{search => }/Error.tsx (100%) diff --git a/components/search/Error.tsx b/components/Error.tsx similarity index 100% rename from components/search/Error.tsx rename to components/Error.tsx diff --git a/components/search/List.tsx b/components/search/List.tsx index d93e7621..86e6791e 100644 --- a/components/search/List.tsx +++ b/components/search/List.tsx @@ -1,5 +1,5 @@ import Item from './Item'; -import ErrorMessage from './Error'; +import ErrorMessage from '../Error'; import { NetworkStatus } from 'apollo-client'; import { useQuery } from '@apollo/react-hooks'; import gql from 'graphql-tag'; @@ -35,7 +35,7 @@ export default function List({ variables }) { } ); - if (error) return ; + if (error) return ; if (loading) return
Loading
; const { result } = data.search;