summaryrefslogtreecommitdiffstats
path: root/client/src/admin/jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/admin/jsx')
-rw-r--r--client/src/admin/jsx/App.jsx3
-rw-r--r--client/src/admin/jsx/User.jsx2
2 files changed, 3 insertions, 2 deletions
diff --git a/client/src/admin/jsx/App.jsx b/client/src/admin/jsx/App.jsx
index 146af70..93b6a33 100644
--- a/client/src/admin/jsx/App.jsx
+++ b/client/src/admin/jsx/App.jsx
@@ -8,6 +8,7 @@ import Info from './Info.jsx';
import MainScreen from './MainScreen.jsx';
import Context from '../context';
import { defaultLanguage } from '../data/translations';
+import { getUser } from '../api';
const App = () => {
const [lang, setLang] = useState(defaultLanguage);
@@ -18,8 +19,8 @@ const App = () => {
const [user, setUser] = useState(null);
useEffect(() => {
+ getUser(setUser);
setInfo('no-saved-websites');
- setUser('admin@op.pl');
}, []);
return (
diff --git a/client/src/admin/jsx/User.jsx b/client/src/admin/jsx/User.jsx
index 22b96b4..131251e 100644
--- a/client/src/admin/jsx/User.jsx
+++ b/client/src/admin/jsx/User.jsx
@@ -1,6 +1,6 @@
import React from 'react';
import { WithHover, t } from '../hocs';
-import logout from '../api/logout';
+import { logout } from '../api';
const User = ({ user, setUser, opened, setOpened }) => {
const handleLogout = () => {