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;