chore: update react 18 (#520)

* chore: update to react 18 and related dependencies
This commit is contained in:
Dan Ribbens
2022-04-12 11:26:55 -04:00
committed by GitHub
parent 6b06fe4481
commit a4f2c5abd4
19 changed files with 65 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
import { MouseEvent } from 'react';
import React, { MouseEvent } from 'react';
export type Props = {
className?: string,

View File

@@ -1,4 +1,5 @@
export type Props = {
children?: React.ReactNode,
className?: string,
to?: string,
icon?: React.ReactNode,

View File

@@ -9,7 +9,7 @@ import './index.scss';
const Context = createContext({} as ContextType);
const StepNavProvider: React.FC = ({ children }) => {
const StepNavProvider: React.FC<{children?: React.ReactNode}> = ({ children }) => {
const [stepNav, setStepNav] = useState([]);
return (