add demo project implementation

This commit is contained in:
Rick Watson
2019-08-09 15:53:39 +01:00
parent aeea0d9aa6
commit df06e58fb0
12 changed files with 182 additions and 34 deletions

View File

@ -12,16 +12,16 @@ class SecuritySettings extends Component {
}
render() {
const { data, fetched, errorMessage } = this.props;
const { data, fetched, errorMessage, saveData, loadData, handleValueChange } = this.props;
return (
<SectionContent title="Security Settings">
<SecuritySettingsForm
securitySettings={data}
securitySettingsFetched={fetched}
errorMessage={errorMessage}
onSubmit={this.props.saveData}
onReset={this.props.loadData}
handleValueChange={this.props.handleValueChange}
onSubmit={saveData}
onReset={loadData}
handleValueChange={handleValueChange}
/>
</SectionContent>
)