diff --git a/src/client/app.tsx b/src/client/app.tsx index e6b1ed3..fc4a6cd 100644 --- a/src/client/app.tsx +++ b/src/client/app.tsx @@ -1,8 +1,8 @@ -import React, { createContext, useRef, useState } from 'react'; +import React, { createContext, useEffect, useRef, useState } from 'react'; import ReactDom from 'react-dom'; import {BrowserRouter, Redirect, Route, Switch as RouterSwitch} from 'react-router-dom'; import { Gallery, ContentAbout, LoginPage, NotFoundPage} from './page/mod'; -import {UserContext} from './state'; +import {getInitialValue, UserContext} from './state'; import './css/style.css'; @@ -10,6 +10,14 @@ const FooProfile = ()=>