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} 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} /> <Progress show={progress > 0} failed={failed} progress={progress} steps={maxSteps} text={text} />
</Card> </Card>