@@ -25,12 +25,12 @@ import { Set } from 'immutable';
25
25
import ' ./style.scss' ;
26
26
import {
27
27
Filter ,
28
- RemoteConfig ,
28
+ ChoiceRemoteConfig ,
29
29
FilterList ,
30
30
StringType ,
31
31
NumberType ,
32
32
DateType ,
33
- SelectType ,
33
+ ChoiceType ,
34
34
ExistsType
35
35
} from ' reactmob-filter' ;
36
36
@@ -57,7 +57,7 @@ const countryOptions = {
57
57
items: countries,
58
58
valueField: ' abbr' ,
59
59
displayField : item => ` ${ item[' abbr' ]} - ${ item[' name' ]} ` ,
60
- /* items: RemoteConfig .create({
60
+ /* items: ChoiceRemoteConfig .create({
61
61
url: 'http://127.0.0.1:8899/api/v1/countries/',
62
62
parser: (data) => {
63
63
if (data && data['_embedded']) {
@@ -73,7 +73,7 @@ const fields = new Set([
73
73
Filter .create ({ name: ' first_name' , label: ' First Name' , type: StringType }),
74
74
Filter .create ({ name: ' birthday' , label: ' Birthday' , type: DateType }),
75
75
Filter .create ({ name: ' age' , label: ' Age' , type: NumberType }),
76
- Filter .create ({ name: ' country' , label: ' Country' , type: SelectType , options: countryOptions }),
76
+ Filter .create ({ name: ' country' , label: ' Country' , type: ChoiceType , options: countryOptions }),
77
77
Filter .create ({ name: ' enabled' , label: ' Enabled' , type: ExistsType }),
78
78
]);
79
79
0 commit comments