import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'; import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight'; import SwipeableViews from 'react-swipeable-views'; import imgApi from 'ba-api/images'; import avatarApi from 'ba-api/avatars'; import { Grid, Typography, MobileStepper, Paper, Avatar, Button, Divider, List, ListItem, ListItemText, } from '@material-ui/core'; import PapperBlock from '../PapperBlock/PapperBlock'; import NewsCard from '../CardPaper/NewsCard'; import ProfileCard from '../CardPaper/ProfileCard'; import styles from './jss/socialMedia-jss'; const slideData = [ { label: 'How to be happy :)', imgPath: imgApi[49], }, { label: '1. Work with something that you like, likeā¦', imgPath: imgApi[17], }, { label: '2. Keep your friends close to you and hangout with them', imgPath: imgApi[34], }, { label: '3. Travel everytime that you have a chance', imgPath: imgApi[10], }, { label: '4. And contribute to Material-UI :D', imgPath: imgApi[40] }, ]; class SideSection extends React.Component { state = { activeStepSwipe: 0, }; handleNextSwipe = () => { this.setState(prevState => ({ activeStepSwipe: prevState.activeStepSwipe + 1, })); }; handleBackSwipe = () => { this.setState(prevState => ({ activeStepSwipe: prevState.activeStepSwipe - 1, })); }; handleStepChangeSwipe = activeStepSwipe => { this.setState({ activeStepSwipe }); }; render() { const { classes, theme } = this.props; const { activeStepSwipe } = this.state; const maxStepsSwipe = slideData.length; return (