File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ import React from 'react'
2
2
import { view } from 'react-easy-state'
3
3
import SearchBar from 'material-ui-search-bar'
4
4
import LinearProgress from '@material-ui/core/LinearProgress'
5
- import { fetchBeers as handleOnRequestSearch , isLoading } from './appStore'
5
+ import appStore from './appStore'
6
6
7
7
// this is re-rendered whenever the relevant parts of the used data stores change
8
8
export default view ( ( ) => (
9
9
< div className = 'searchbar' >
10
10
< SearchBar
11
- onRequestSearch = { handleOnRequestSearch }
11
+ onRequestSearch = { appStore . fetchBeers }
12
12
placeholder = 'Add some food ...'
13
13
autoFocus
14
14
/>
15
- { isLoading && < LinearProgress /> }
15
+ { appStore . isLoading && < LinearProgress /> }
16
16
</ div >
17
17
) )
Original file line number Diff line number Diff line change 102
102
],
103
103
"ignore" : [
104
104
" **/build/**" ,
105
- " **/node_modules/**"
105
+ " **/node_modules/**" ,
106
+ " examples/**"
106
107
]
107
108
},
108
109
"pre-push" : [
You can’t perform that action at this time.
0 commit comments