You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import React, { Component } from 'react';
import { OTA_SETTINGS_ENDPOINT } from '../constants/Endpoints'; import { restComponent } from '../components/RestComponent'; import LoadingNotification from '../components/LoadingNotification'; import SectionContent from '../components/SectionContent'; import OTASettingsForm from '../forms/OTASettingsForm';
class OTASettings extends Component {
componentDidMount() { this.props.loadData(); }
render() { const { fetched, errorMessage, data, saveData, loadData, handleValueChange, handleCheckboxChange } = this.props; return ( <SectionContent title="OTA Settings"> <LoadingNotification onReset={loadData} fetched={fetched} errorMessage={errorMessage}> <OTASettingsForm otaSettings={data} onSubmit={saveData} onReset={loadData} handleValueChange={handleValueChange} handleCheckboxChange={handleCheckboxChange} /> </LoadingNotification> </SectionContent> ) }
}
export default restComponent(OTA_SETTINGS_ENDPOINT, OTASettings);
|