import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import SwipeableViews from 'react-swipeable-views'; import { AppBar, Tabs, Tab, Typography } from '@material-ui/core'; function TabContainer({ children, dir }) { return ( {children} ); } TabContainer.propTypes = { children: PropTypes.node.isRequired, dir: PropTypes.string.isRequired, }; const styles = theme => ({ root: { backgroundColor: theme.palette.background.paper, [theme.breakpoints.up('sm')]: { width: 500, }, margin: '10px auto' }, }); class FixedTabs extends React.Component { state = { value: 0, }; handleChange = (event, value) => { this.setState({ value }); }; handleChangeIndex = index => { this.setState({ value: index }); }; render() { const { classes, theme } = this.props; return (
Item One Item Two Item Three
); } } FixedTabs.propTypes = { classes: PropTypes.object.isRequired, theme: PropTypes.object.isRequired, }; export default withStyles(styles, { withTheme: true })(FixedTabs);