mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-09-10 20:08:19 +02:00
Add Placeholders to search for instructions
This commit is contained in:
@@ -100,10 +100,12 @@ function SearchDialog ({open, setOpen} : {open: boolean, setOpen: Dispatch<boole
|
|||||||
<Modal sx={{width: "100%", height: "100%"}} open={open} onClose={() => setOpen(false)}>
|
<Modal sx={{width: "100%", height: "100%"}} open={open} onClose={() => setOpen(false)}>
|
||||||
<ModalDialog sx={{width: "80%"}}>
|
<ModalDialog sx={{width: "80%"}}>
|
||||||
<ModalClose />
|
<ModalClose />
|
||||||
|
<Typography level={"h1"}>Search or add Manga</Typography>
|
||||||
<Stepper orientation={"vertical"}>
|
<Stepper orientation={"vertical"}>
|
||||||
<Step indicator={<StepIndicator>1</StepIndicator>}>
|
<Step indicator={<StepIndicator>1</StepIndicator>}>
|
||||||
<Typography>Connector</Typography>
|
<Typography>Connector</Typography>
|
||||||
<Select
|
<Select
|
||||||
|
placeholder={"Select Connector 'Global' to search on all Connectors"}
|
||||||
disabled={loadingState == LoadingState.loading}
|
disabled={loadingState == LoadingState.loading}
|
||||||
onChange={(_, v) => setSelectedMangaConnector(v as MangaConnector)}>
|
onChange={(_, v) => setSelectedMangaConnector(v as MangaConnector)}>
|
||||||
{mangaConnectors?.map(con => (
|
{mangaConnectors?.map(con => (
|
||||||
@@ -119,6 +121,7 @@ function SearchDialog ({open, setOpen} : {open: boolean, setOpen: Dispatch<boole
|
|||||||
disabled={loadingState == LoadingState.loading}
|
disabled={loadingState == LoadingState.loading}
|
||||||
onKeyDown={keyDownCheck}
|
onKeyDown={keyDownCheck}
|
||||||
onChange={(e) => setSearchTerm(e.currentTarget.value)}
|
onChange={(e) => setSearchTerm(e.currentTarget.value)}
|
||||||
|
placeholder={"Enter search-term or supported Connector-Url"}
|
||||||
endDecorator={<Button
|
endDecorator={<Button
|
||||||
disabled={loadingState == LoadingState.loading}
|
disabled={loadingState == LoadingState.loading}
|
||||||
onClick={doTheSearch}
|
onClick={doTheSearch}
|
||||||
|
Reference in New Issue
Block a user