mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(deps): update react monorepo to v18
This commit is contained in:
parent
ca09d6b49e
commit
8e0b38b9b3
6 changed files with 1382 additions and 6032 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue