import * as React from 'react' ; import './ConfigEditor.scss' ; import ConfigFormView from './ConfigFormView' ; import { loadCanaryConfigService } from '../../services' ; import { RouterProps } from 'react-router' ; import ConfigFormButtonSection from './ConfigFormButtonSection' ; interface Props extends RouterProps { } export default class ConfigEditor extends React . Component < Props > { async componentDidMount ( ) { window . scrollTo ( 0 , 0 ) ; await loadCanaryConfigService . loadCanaryFromTemplate ( ) ; } render ( ) { return ( < div className = "config-editor" > < ConfigFormView history = { this . props . history } /> < ConfigFormButtonSection history = { this . props . history } / > < /div>); } }