[search][s]: implement 'Form' component that merges 'Input' and 'Sort' components and fixes 'Sort' functionality.

This commit is contained in:
anuveyatsu
2020-06-19 17:05:55 +06:00
parent dfd5efa961
commit 5f84d7f5b7
4 changed files with 64 additions and 58 deletions

View File

@@ -4,9 +4,8 @@ import config from '../config';
import utils from '../utils';
import Head from 'next/head';
import Nav from '../components/home/Nav';
import Input from '../components/search/Input';
import Form from '../components/search/Form';
import Total from '../components/search/Total';
import Sort from '../components/search/Sort';
import List, { DEFAULT_SEARCH_QUERY } from '../components/search/List';
import { initializeApollo } from '../lib/apolloClient';
@@ -19,9 +18,8 @@ function Search({ variables }) {
</Head>
<Nav />
<main className="p-6">
<Input />
<Form />
<Total variables={variables} />
<Sort />
<List variables={variables} />
</main>
</>