From 45d641addb65f424019027acc45c14ce4b05cd86 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Sat, 10 Apr 2021 17:51:02 -0400 Subject: [PATCH] Rename var --- src/components/AuthenticationContext.ts | 4 ++-- src/components/AuthenticationWrapper.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/AuthenticationContext.ts b/src/components/AuthenticationContext.ts index 82ca393..5c267e9 100644 --- a/src/components/AuthenticationContext.ts +++ b/src/components/AuthenticationContext.ts @@ -10,10 +10,10 @@ export type AuthState = { refreshAuthState: (() => void) | null; }; -const Authentication = createContext({ +const AuthenticationContext = createContext({ isLoggedIn: false, user: null, refreshAuthState: null, }); -export default Authentication; +export default AuthenticationContext; diff --git a/src/components/AuthenticationWrapper.tsx b/src/components/AuthenticationWrapper.tsx index b8e09e1..fdcc6a7 100644 --- a/src/components/AuthenticationWrapper.tsx +++ b/src/components/AuthenticationWrapper.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useState } from 'react'; import { getMe } from '../api/api'; -import Authentication, { AuthState } from './AuthenticationContext'; +import AuthenticationContext, { AuthState } from './AuthenticationContext'; export default function AuthenticationWrapper({ children, @@ -37,9 +37,9 @@ export default function AuthenticationWrapper({ return null; } else { return ( - + {children} - + ); } }