Skip to content

Commit

Permalink
Merge branch 'v3-dev' into feat/color-mode-persistance
Browse files Browse the repository at this point in the history
  • Loading branch information
theankurkedia committed Jan 6, 2021
2 parents 794e94c + 5f5efae commit 6c2958d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function () {
control={control}
render={({ onChange, value }) => (
<NumberInput
onChange={(value: any) => onChange(value)}
onChange={(val: any) => onChange(val)}
defaultValue={value}
>
<NumberInputField />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function () {
<Controller
control={control}
render={({ onChange, value }) => (
<PinInput onChange={(value: any) => onChange(value)} value={value}>
<PinInput onChange={(val: any) => onChange(val)} value={value}>
<PinInputField />
<PinInputField />
<PinInputField />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function () {
<RadioGroup
name="gender"
flexDirection="row"
onChange={(value) => onChange(value)}
onChange={(val) => onChange(val)}
>
<Radio value="male" colorScheme="blue">
<Text mx={2}>Male</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function () {
<Controller
control={control}
render={({ onChange, value }) => (
<Slider onChange={(value) => onChange(value)} defaultValue={value}>
<Slider onChange={(val) => onChange(val)} defaultValue={value}>
<SliderTrack>
<SliderFilledTrack />
</SliderTrack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function () {
control={control}
render={({ onChange, value }) => (
<Switch
onToggle={(value: boolean) => onChange(value)}
onToggle={(val: boolean) => onChange(val)}
isChecked={value}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function () {
render={({ onChange, value }) => (
<TextArea
placeholder="TextArea"
onChangeText={(value) => onChange(value)}
onChangeText={(val) => onChange(val)}
defaultValue={value}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function () {
<Input
onBlur={onBlur}
placeholder="John"
onChangeText={(value) => onChange(value)}
onChangeText={(val) => onChange(val)}
value={value}
/>
)}
Expand All @@ -48,7 +48,7 @@ export default function () {
<Input
onBlur={onBlur}
placeholder="Doe"
onChangeText={(value) => onChange(value)}
onChangeText={(val) => onChange(val)}
value={value}
/>
)}
Expand All @@ -65,7 +65,7 @@ export default function () {
<Input
onBlur={onBlur}
placeholder="24"
onChangeText={(value) => onChange(value)}
onChangeText={(val) => onChange(val)}
value={value}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Switch from './Switch';
import Slider from './Slider';
import Usage from './Usage';

storiesOf('ReactHookForm', module)
storiesOf('React Hook Form', module)
.addDecorator(withKnobs)
.addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
.add('Usage', () => <Usage />)
Expand Down

0 comments on commit 6c2958d

Please sign in to comment.