Skip to content

Commit

Permalink
min styles
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhey committed Jun 20, 2024
1 parent 0ca8ed2 commit 52e7157
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ const Home = (): ReactElement => {
}, [value, setValues, dataRef.current])

return (
<div>
<Search value={value} onChange={onChange} />
{!isLoading && values.map(({ name }) => (
<div key={name}>
<Link to={name}>
{name}
</Link>
</div>
))}
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
<div>
<Search value={value} onChange={onChange} />
</div>
<div>
{!isLoading && values.map(({ name }) => (
<div key={name}>
<Link to={name}>
{name}
</Link>
</div>
))}
</div>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Search: ({ value, onChange }: { value: string, onChange: ({ target:

return (
<>
Search the pokemon:
Search the pokemon:&nbsp;
<SearchInput ref={ref} value={value} onChange={onChange} />
</>
)
Expand Down

0 comments on commit 52e7157

Please sign in to comment.