[error component][xs]: move it to top level dir so we can easily use it for other components.

This commit is contained in:
anuveyatsu 2020-06-19 18:11:34 +06:00
parent 5f84d7f5b7
commit 8b8adccc74
2 changed files with 2 additions and 2 deletions

View File

@ -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 <ErrorMessage message="Error loading posts." />;
if (error) return <ErrorMessage message="Error loading search results." />;
if (loading) return <div>Loading</div>;
const { result } = data.search;