Skip to content

Commit 1ac7436

Browse files
committed
rename ExistsChoiceConfig
1 parent c85c6ed commit 1ac7436

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

lib/Type/ExistsType.js

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Type/ExistsType.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactmob-filter",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": false,
55
"description": "Accessible, extensible, Filter for React.js",
66
"homepage": "https://github.com/reactmob/dos-filter",

src/Type/ExistsType.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import AbstractType from './AbstractType';
44

55
const FILTER_EQUAL = 'EQUAL';
66

7-
export class ChoiceConfig {
7+
export class ExistsChoiceConfig {
88
constructor({ yesLabel = 'Yes', yesValue = 1, noLabel = 'No', noValue = 0 } = {}) {
99
this.yesLabel = yesLabel;
1010
this.yesValue = yesValue;
@@ -13,19 +13,19 @@ export class ChoiceConfig {
1313
}
1414

1515
static create(arg) {
16-
return new ChoiceConfig(arg);
16+
return new ExistsChoiceConfig(arg);
1717
}
1818
}
1919

2020
export default class ExistsType extends AbstractType {
2121
static defaultOperator = FILTER_EQUAL;
2222

2323
static propTypes = {
24-
choice: PropTypes.instanceOf(ChoiceConfig),
24+
choice: PropTypes.instanceOf(ExistsChoiceConfig),
2525
};
2626

2727
static defaultProps = {
28-
choice: ChoiceConfig.create(),
28+
choice: ExistsChoiceConfig.create(),
2929
};
3030

3131
validate(value) {

0 commit comments

Comments
 (0)