Create initial App/Search tests and related data

This commit is contained in:
2020-07-30 17:36:22 +02:00
parent 6af8d5db92
commit 5810948275
5 changed files with 529 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ import { Search } from './Search';
import { Results } from './Results';
import { Artists, Artist } from '../interfaces';
const QUERY_ARTISTS = gql`
export const QUERY_ARTISTS = gql`
query Artist($byName: String!) {
queryArtists(byName: $byName) {
name

View File

@@ -19,13 +19,10 @@ export const Search = ({
justify='center'
margin={{ top: 'large' }}
>
<Box
as='div'
margin={{ vertical: 'none' }}
width='500px'
>
<Box as='div' margin={{ vertical: 'none' }} width='500px'>
<TextInput
type='search'
name='q'
value={inputValue}
suggestions={suggestions}
onChange={(e) => handleChange(e.target.value)}
@@ -33,7 +30,9 @@ export const Search = ({
icon={<FormSearch color='plain' />}
dropHeight='large'
placeholder='Type an artist name'
autoFocus
aria-label='Search by artist name'
/>
</Box>
</Box>
);
);