chore(deps): update react monorepo to v18

This commit is contained in:
renovate[bot] 2022-06-25 12:27:07 +00:00 committed by Julian Tölle
parent ca09d6b49e
commit 8e0b38b9b3
6 changed files with 1382 additions and 6032 deletions

View file

@ -16,7 +16,9 @@ const apiClientContext = createContext<ApiClientContext>(
undefined as any as ApiClientContext
);
export const ProvideApiClient: React.FC = ({ children }) => {
export const ProvideApiClient: React.FC<{ children: React.ReactNode }> = ({
children,
}) => {
const auth = useProvideApiClient();
return (

View file

@ -19,7 +19,9 @@ interface AuthContext {
const authContext = createContext<AuthContext>(undefined as any as AuthContext);
export const ProvideAuth: React.FC = ({ children }) => {
export const ProvideAuth: React.FC<{ children: React.ReactNode }> = ({
children,
}) => {
const auth = useProvideAuth();
return <authContext.Provider value={auth}>{children}</authContext.Provider>;