Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as React from 'react';
- import {createStyles, makeStyles, Theme, useTheme} from '@material-ui/core/styles';
- import MobileStepper from '@material-ui/core/MobileStepper';
- import Button from '@material-ui/core/Button';
- import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
- import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';
- const useStyles = makeStyles((theme: Theme) =>
- createStyles({
- 'MuiMobileStepper-dot': {
- position: 'relative',
- background: 'black',
- zIndex: 12,
- },
- }
- )
- );
- export default function DotsMobileStepper() {
- const theme = useTheme();
- const classes = useStyles();
- const [activeStep, setActiveStep] = React.useState(0);
- const handleNext = () => {
- setActiveStep((prevActiveStep) => prevActiveStep + 1);
- };
- const handleBack = () => {
- setActiveStep((prevActiveStep) => prevActiveStep - 1);
- };
- return (
- <MobileStepper
- variant="dots"
- steps={6}
- position="static"
- activeStep={activeStep}
- className={classes["MuiMobileStepper-dot"]}
- //sx={{ maxWidth: 400, flexGrow: 1 }}
- nextButton={
- <Button size="small" onClick={handleNext} disabled={activeStep === 5}>
- Next
- {theme.direction === 'rtl' ? (
- <KeyboardArrowLeft />
- ) : (
- <KeyboardArrowRight />
- )}
- </Button>
- }
- backButton={
- <Button size="small" onClick={handleBack} disabled={activeStep === 0}>
- {theme.direction === 'rtl' ? (
- <KeyboardArrowRight />
- ) : (
- <KeyboardArrowLeft />
- )}
- Back
- </Button>
- }
- />
- );
- }
- /----/
- .video_room__outline {
- /*display: flex;*/
- background: black;
- height: 100vh;
- }
Advertisement
Add Comment
Please, Sign In to add comment