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 {restController, RestControllerProps, RestFormLoader, SectionContent } from '../components'; import { OTA_SETTINGS_ENDPOINT } from '../api';
import OTASettingsForm from './OTASettingsForm'; import { OTASettings } from './types';
type OTASettingsControllerProps = RestControllerProps<OTASettings>;
class OTASettingsController extends Component<OTASettingsControllerProps> {
componentDidMount() { this.props.loadData(); }
render() { return ( <SectionContent title="OTA Settings" titleGutter> <RestFormLoader {...this.props} render={formProps => <OTASettingsForm {...formProps} />} /> </SectionContent> ); }
}
export default restController(OTA_SETTINGS_ENDPOINT, OTASettingsController);
|