mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
show a placeholder
This commit is contained in:
parent
7c055e8024
commit
521f239359
@ -35,13 +35,12 @@ const SearchButton = (props) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div
|
return (
|
||||||
className="searchButton"
|
<div className="searchButton" onClick={() => openSearchBox(true)}>
|
||||||
onClick={() => openSearchBox(true)}
|
|
||||||
>
|
|
||||||
<Input
|
<Input
|
||||||
ref={searchBoxRef}
|
ref={searchBoxRef}
|
||||||
className={classnames("searchBox", { ["open"]: open })}
|
className={classnames("searchBox", { ["open"]: open })}
|
||||||
|
placeholder="Type for search..."
|
||||||
onSearch={props.onSearch}
|
onSearch={props.onSearch}
|
||||||
onChange={handleOnChange}
|
onChange={handleOnChange}
|
||||||
value={value}
|
value={value}
|
||||||
@ -54,6 +53,7 @@ const SearchButton = (props) => {
|
|||||||
disabled={props.disabled}
|
disabled={props.disabled}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SearchButton
|
export default SearchButton
|
Loading…
x
Reference in New Issue
Block a user