Skip to content

Commit 4ee8b93

Browse files
authored
Fix some example snippets (#1882)
1 parent 67741ba commit 4ee8b93

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

src/components/checkbox/checkbox.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
}
3838
],
3939
"snippet": [
40-
"<Checkbox value={false$1} onValueChange={() => console.log('value changed)$2}/>"
40+
"<Checkbox value={false$1} onValueChange={() => console.log('value changed')$2}/>"
4141
]
4242
}

src/components/chip/chip.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
{"name": "testID", "type": "string", "description": "The test id for e2e tests"}
5454
],
5555
"snippet": [
56-
"<Chip label={'Chip'$1} onPress={() => console.log('pressed)$2}/>"
56+
"<Chip label={'Chip'$1} onPress={() => console.log('pressed')$2}/>"
5757
]
5858
}

src/components/colorPalette/ColorPalette.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"<ColorPalette",
4545
" colors={['transparent', Colors.green30, Colors.yellow30, Colors.red30]$1}",
4646
" value={this.state.selectedColor$2}",
47-
" onValueChange={() => console.log('value changed)$3}",
47+
" onValueChange={() => console.log('value changed')$3}",
4848
"/>"
4949
]
5050
}

src/components/listItem/listItem.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{"name": "testID", "type": "string", "description": "The test id for e2e tests"}
2222
],
2323
"snippet": [
24-
"<ListItem onPress={() => console.log('pressed)$1}>",
24+
"<ListItem onPress={() => console.log('pressed')$1}>",
2525
" <Text grey10 text60 marginL-10>The item</Text>$2",
2626
"</ListItem>"
2727
]

src/components/modal/api/modal.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
],
3838
"snippet": [
39-
"<Modal visible={this.state.visible$1} onBackgroundPress={() => console.log('background pressed)$3}>",
39+
"<Modal visible={this.state.visible$1} onBackgroundPress={() => console.log('background pressed')$3}>",
4040
" <Text text60>Content</Text>$4",
4141
"</Modal>"
4242
]

src/components/picker/api/picker.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"<Picker",
9797
" value={this.state.value$1}",
9898
" placeholder={'Placeholder'$2}",
99-
" onChange={() => console.log('changed)$3}",
99+
" onChange={() => console.log('changed')$3}",
100100
">",
101101
" {_.map(items, item => (",
102102
" return this.renderItem(item, index);",

src/components/radioGroup/radioGroup.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"snippet": [
25-
"<RadioGroup initialValue={this.state.value$1} onValueChange={() => console.log('value changed)$2}>",
25+
"<RadioGroup initialValue={this.state.value$1} onValueChange={() => console.log('value changed')$2}>",
2626
" <RadioButton value={'yes'$3} label={'Yes'$4}/>",
2727
" <RadioButton value={'no'$5} label={'No'$6}/>",
2828
"</RadioGroup>"

src/components/stackAggregator/stackAggregator.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"snippet": [
2929
"<StackAggregator",
30-
" onItemPress={() => console.log('pressed)$1}",
30+
" onItemPress={() => console.log('pressed')$1}",
3131
">",
3232
" {_.map(items, (item, index) => {",
3333
" return this.renderItem(item, index);",

src/components/switch/switch.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
{"name": "testID", "type": "string", "description": "Component test id"}
2929
],
3030
"snippet": [
31-
"<Switch value={false$1} onValueChange={() => console.log('value changed)$2}/>"
31+
"<Switch value={false$1} onValueChange={() => console.log('value changed')$2}/>"
3232
]
3333
}

src/components/touchableOpacity/touchableOpacity.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
{"name": "onPress", "type": "(props) => void", "description": "On press callback"}
3131
],
3232
"snippet": [
33-
"<TouchableOpacity onPress={() => console.log('pressed)$1}/>"
33+
"<TouchableOpacity onPress={() => console.log('pressed')$1}/>"
3434
]
3535
}

src/components/wizard/wizard.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{"name": "testID", "type": "string", "description": "The component test id"}
2525
],
2626
"snippet": [
27-
"<Wizard activeIndex={0$1} onActiveIndexChanged={() => console.log('changed)$2}>",
27+
"<Wizard activeIndex={0$1} onActiveIndexChanged={() => console.log('changed')$2}>",
2828
" {_.map(items, item => (",
2929
" return this.renderItem(item, index);",
3030
" ))}",

src/incubator/TextField/textField.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"<TextField",
9494
" placeholder={'Placeholder$1}",
9595
" floatingPlaceholder",
96-
" onChangeText={() => console.log('changed)$2}",
96+
" onChangeText={() => console.log('changed')$2}",
9797
" enableErrors",
9898
" validate={['required', 'email', (value) => value.length > 6]$3}",
9999
" validationMessage={['Field is required', 'Email is invalid', 'Password is too short']$4}",

src/incubator/WheelPicker/wheelPicker.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"<WheelPicker",
3939
" items={[{label: 'Yes', value: 'yes'}, {label: 'No', value: 'no'}, {label: 'Maybe', value: 'maybe'}]$1}",
4040
" initialValue={'yes'$2}",
41-
" onChange={() => console.log('changed)$3}",
41+
" onChange={() => console.log('changed')$3}",
4242
"/>"
4343
]
4444
}

src/incubator/toast/toast.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
" visible={this.state.visible$1}",
6666
" position={'top'$2}",
6767
" autoDismiss={5000$2}",
68-
" onDismiss={() => console.log('dismissed)$3}",
68+
" onDismiss={() => console.log('dismissed')$3}",
6969
">"
7070
]
7171
}

0 commit comments

Comments
 (0)