Browse Source

feat(search): different placeholder based on type

pull/6/head
Jip Fr 4 years ago
parent
commit
270daeccec
  1. 2
      src/views/Search.js

2
src/views/Search.js

@ -117,7 +117,7 @@ export function SearchView() { @@ -117,7 +117,7 @@ export function SearchView() {
]}
selected={type}
/>
<InputBox placeholder="Hamilton" onSubmit={(str) => searchMovie(str, type)} />
<InputBox placeholder={ type === "movie" ? "Hamilton" : "Atypical" } onSubmit={(str) => searchMovie(str, type)} />
<Progress show={progress > 0} failed={failed} progress={progress} steps={maxSteps} text={text} />
</Card>

Loading…
Cancel
Save