import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'; import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight'; import { MobileStepper, Button, Grid, Typography } from '@material-ui/core'; const styles = theme => ({ root: { [theme.breakpoints.up('sm')]: { width: 400, margin: '0 auto' }, flexGrow: 1, }, title: { textAlign: 'center', margin: `${theme.spacing(4)}px 0 ${theme.spacing(2)}px`, }, }); class MobileSteppers extends React.Component { state = { activeStepDots: 0, activeStepLine: 0, }; handleNextDots = () => { this.setState({ activeStepDots: this.state.activeStepDots + 1, }); }; handleBackDots = () => { this.setState({ activeStepDots: this.state.activeStepDots - 1, }); }; handleNextLine = () => { this.setState({ activeStepLine: this.state.activeStepLine + 1, }); }; handleBackLine = () => { this.setState({ activeStepLine: this.state.activeStepLine - 1, }); }; render() { const { classes, theme } = this.props; return ( Mobile Stepper - Dots Next {theme.direction === 'rtl' ? : } )} backButton={( )} /> Mobile Stepper - Progress Next {theme.direction === 'rtl' ? : } )} backButton={( )} /> ); } } MobileSteppers.propTypes = { classes: PropTypes.object.isRequired, theme: PropTypes.object.isRequired, }; export default withStyles(styles, { withTheme: true })(MobileSteppers);