CustomStepConnector

master
Tudor Stanciu 2020-12-19 01:30:55 +02:00
parent b26f41b128
commit 0409ab947e
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import {
makeStyles makeStyles
} from "@material-ui/core"; } from "@material-ui/core";
import { useLocation, useHistory } from "react-router-dom"; import { useLocation, useHistory } from "react-router-dom";
import StepperConnector from "./StepperConnector"; import CustomStepConnector from "./CustomStepConnector";
import ColorlibStepIcon from "./ColorlibStepIcon"; import ColorlibStepIcon from "./ColorlibStepIcon";
const styles = () => ({ const styles = () => ({
@ -47,7 +47,7 @@ const ApplicationStepper = () => {
<Stepper <Stepper
activeStep={activeStep.id} activeStep={activeStep.id}
orientation="horizontal" orientation="horizontal"
connector={<StepperConnector />} connector={<CustomStepConnector />}
> >
{steps.map((step) => ( {steps.map((step) => (
<Step key={step.id}> <Step key={step.id}>

View File

@ -1,7 +1,7 @@
import { withStyles } from "@material-ui/core/styles"; import { withStyles } from "@material-ui/core/styles";
import StepConnector from "@material-ui/core/StepConnector"; import StepConnector from "@material-ui/core/StepConnector";
const StepperConnector = withStyles({ const CustomStepConnector = withStyles({
alternativeLabel: { alternativeLabel: {
top: 22 top: 22
}, },
@ -25,4 +25,4 @@ const StepperConnector = withStyles({
} }
})(StepConnector); })(StepConnector);
export default StepperConnector; export default CustomStepConnector;