import React, { Component } from 'react'; import { ValidatorForm } from 'react-material-ui-form-validator'; import { ENDPOINT_ROOT } from '../constants/Env'; import SectionContent from '../components/SectionContent'; import { restComponent } from '../components/RestComponent'; import LoadingNotification from '../components/LoadingNotification'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; import { makeStyles } from '@material-ui/core/styles'; export const DEMO_SETTINGS_ENDPOINT = ENDPOINT_ROOT + "demoSettings"; const valueToPercentage = (value) => `${Math.round(value / 255 * 100)}%`; class DemoController extends Component { componentDidMount() { this.props.loadData(); } render() { const { data, fetched, errorMessage, saveData, loadData, handleSliderChange } = this.props; return ( } /> ) } } const useStyles = makeStyles(theme => ({ button: { marginRight: theme.spacing(2), marginTop: theme.spacing(2), }, blinkSpeedLabel: { marginBottom: theme.spacing(5), } })); function DemoControllerForm(props) { const { demoSettings, onSubmit, onReset, handleSliderChange } = props; const classes = useStyles(); return ( Blink Speed ); } export default restComponent(DEMO_SETTINGS_ENDPOINT, DemoController);