chore: update react 18 (#520)
* chore: update to react 18 and related dependencies
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { MouseEvent } from 'react';
|
||||
import React, { MouseEvent } from 'react';
|
||||
|
||||
export type Props = {
|
||||
className?: string,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export type Props = {
|
||||
children?: React.ReactNode,
|
||||
className?: string,
|
||||
to?: string,
|
||||
icon?: React.ReactNode,
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user