Skip to content

Commit d01c96b

Browse files
authored
Merge pull request #582 from geichelberger/update-react
Update react and get rid of mui styles
2 parents f711e2d + 8766030 commit d01c96b

7 files changed

Lines changed: 65 additions & 220 deletions

File tree

package-lock.json

Lines changed: 28 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"homepage": "/admin-ui",
77
"dependencies": {
88
"@hello-pangea/dnd": "^16.5.0",
9-
"@mui/material": "^5.15.9",
10-
"@mui/styles": "^5.15.19",
9+
"@mui/material": "^5.15.19",
1110
"@mui/x-date-pickers": "^7.6.1",
1211
"@reduxjs/toolkit": "^2.2.5",
1312
"@types/dompurify": "^3.0.5",
@@ -27,10 +26,10 @@
2726
"lodash": "^4.17.21",
2827
"moment": "^2.30.1",
2928
"moment-timezone": "^0.5.45",
30-
"react": "^17.0.0",
29+
"react": "^18.3.1",
3130
"react-chartjs-2": "^5.2.0",
3231
"react-datepicker": "^6.9.0",
33-
"react-dom": "^17.0.2",
32+
"react-dom": "^18.3.1",
3433
"react-hotkeys-hook": "^4.4.4",
3534
"react-i18next": "^14.1.2",
3635
"react-icons": "^5.2.1",
@@ -69,6 +68,7 @@
6968
"@redux-devtools/extension": "^3.3.0",
7069
"@types/lodash": "^4.17.4",
7170
"@types/node": "^20.14.1",
71+
"@types/react-dom": "^18.3.0",
7272
"@types/uuid": "^9.0.8",
7373
"@vitejs/plugin-react-swc": "^3.7.0",
7474
"prop-types": "^15.8.1",

src/components/shared/wizard/CustomStepIcon.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
import { useStepIconStyles } from "../../../utils/wizardUtils";
2-
import cn from "classnames";
1+
import { stepIcon } from "../../../utils/wizardUtils";
32
import { FaCircle, FaDotCircle } from "react-icons/fa";
4-
import React from "react";
53
import { StepIconProps } from "@mui/material";
64

75
/**
86
* Component that renders icons of Stepper depending on completeness of steps
97
*/
108
const CustomStepIcon = (props: StepIconProps) => {
11-
const { completed } = props;
12-
const classes = useStepIconStyles(props);
9+
const { completed, active } = props;
1310

1411
return (
15-
<div className={cn(classes.root)}>
12+
<div style={stepIcon.root}>
1613
{completed ? (
17-
<FaCircle className={classes.circle} />
14+
<FaCircle style={{...stepIcon.circle, ...(active && stepIcon.circleActive),}}/>
1815
) : (
19-
<FaDotCircle className={classes.circle} />
16+
<FaDotCircle style={{...stepIcon.circle, ...(active && stepIcon.circleActive),}} />
2017
)}
2118
</div>
2219
);

0 commit comments

Comments
 (0)