File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import useSearch from '../use-search'
9
9
import DarkButton from './dark-button'
10
10
import DarkTextInput from './dark-text-input'
11
11
import SearchResults from './search-results'
12
+ import useSiteMetadata from '../use-site-metadata'
12
13
13
14
function stateReducer ( state , changes ) {
14
15
switch ( changes . type ) {
@@ -29,6 +30,7 @@ function stateReducer(state, changes) {
29
30
function MobileSearch ( { isOpen, onDismiss} ) {
30
31
const [ query , setQuery ] = React . useState ( '' )
31
32
const results = useSearch ( query )
33
+ const siteMetadata = useSiteMetadata ( )
32
34
33
35
function handleDismiss ( ) {
34
36
setQuery ( '' )
@@ -90,7 +92,7 @@ function MobileSearch({isOpen, onDismiss}) {
90
92
>
91
93
< DarkTextInput
92
94
{ ...getInputProps ( {
93
- placeholder : `Search` ,
95
+ placeholder : `Search ${ siteMetadata . title } ` ,
94
96
width : '100%' ,
95
97
} ) }
96
98
/>
You can’t perform that action at this time.
0 commit comments