Add UI for admins to view and edit member's details

This commit is contained in:
2020-01-13 08:01:42 +00:00
parent 0c814790a7
commit f52ee5532d
13 changed files with 268 additions and 44 deletions
+1 -3
View File
@@ -30,7 +30,6 @@ function App() {
useEffect(() => {
requester('/user/', 'GET', token)
.then(res => {
console.log(res);
setUserCache(res);
})
.catch(err => {
@@ -42,7 +41,6 @@ function App() {
function logout() {
setTokenCache('');
setUserCache(false);
window.location = '/';
}
return (
@@ -163,7 +161,7 @@ function App() {
</Route>
<Route path='/members/:id'>
<MemberDetail token={token} />
<MemberDetail token={token} user={user} />
</Route>
<Route path='/members'>
<Members token={token} />