1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

feat(search): different placeholder based on type

This commit is contained in:
Jip Fr 2021-07-15 18:18:47 +02:00
parent 85dda8c13f
commit 270daeccec

View file

@ -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>