Migrate auth components to new Context api

This commit is contained in:
SleepWalker
2019-12-13 09:26:29 +02:00
parent 08a2158042
commit 59debce051
8 changed files with 212 additions and 211 deletions

View File

@@ -27,6 +27,10 @@ export default class FormModel {
this.renderErrors = options.renderErrors !== false;
}
hasField(fieldId: string) {
return !!this.fields[fieldId];
}
/**
* Connects form with React's component
*