import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import RestoreIcon from '@material-ui/icons/Restore'; import FavoriteIcon from '@material-ui/icons/Favorite'; import LocationOnIcon from '@material-ui/icons/LocationOn'; import { Typography, Grid, BottomNavigation, BottomNavigationAction, Icon } from '@material-ui/core'; const styles = theme => ({ root: { width: 'auto', }, divider: { display: 'block', margin: `${theme.spacing(3)}px 0`, } }); class BottomNav extends React.Component { state = { value: 0, value2: 'recents', }; handleChange = (event, value) => { this.setState({ value }); }; handleChange2 = (event, value2) => { this.setState({ value2 }); }; render() { const { classes } = this.props; const { value, value2 } = this.state; return ( With Label
} /> } /> } />
Without Label
} /> } /> } /> folder} />
); } } BottomNav.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(BottomNav);