Skip to content

Commit

Permalink
#55 Remove "formRef" from action creators
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrohsilveira committed Jul 31, 2018
1 parent 2997a53 commit 395a6cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-formctrl/src/provider/provider.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ export function onUnregisterForm(form) {
}
}

export function onSubmitForm(form, formRef) {
export function onSubmitForm(form) {
return {
type: REACT_FORMCTRL.EVENTS.FORM_SUBMITED,
payload: {form, formRef}
payload: {form}
}
}

export function onResetForm(form, formRef, eventType) {
export function onResetForm(form, eventType) {
return {
type: REACT_FORMCTRL.EVENTS.FORM_RESETED,
payload: {form, formRef, eventType}
payload: {form, eventType}
}
}

Expand Down

0 comments on commit 395a6cc

Please sign in to comment.