diff --git a/webclient/src/App.js b/webclient/src/App.js index cd8a336..2be0193 100644 --- a/webclient/src/App.js +++ b/webclient/src/App.js @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; import './light.css'; import Logo from './logo.svg'; -import { Container, Divider, Form, Grid, Header, Icon, Menu, Message } from 'semantic-ui-react'; +import { Container, Divider, Form, Grid, Header, Icon, Menu, Message, Segment } from 'semantic-ui-react'; import { requester } from './utils.js'; function LoginForm(props) { @@ -198,7 +198,7 @@ function DetailsForm(props) { return (
-
Enter Details
+
Enter New Member Details
+
{member.first_name} {member.last_name}
+ + ); +} + function App() { const [token, setToken] = useState(localStorage.getItem('token', '')); const [user, setUser] = useState(JSON.parse(localStorage.getItem('user', 'false'))); @@ -266,6 +276,8 @@ function App() { setUserCache(false); } + const menuName = user.member && user.member.preferred_name || 'Me'; + return (
@@ -280,10 +292,10 @@ function App() { content='Home' /> {user && @@ -300,7 +312,7 @@ function App() { {user ? user.member.set_details ? -

yay welcome {user.member.first_name}

+ : : @@ -314,7 +326,26 @@ function App() { }
-

two

+ +
Portal
+

Welcome to the Protospace member portal! Here you can view member info, join classes, and manage your membership.

+ +
Quick Links
+

Main Website

+

Protospace Wiki

+

Discussion Google Group

+

Google Drive

+ +
Protospace Stats
+

Next member meeting: Jan 01, 2099

+

Next monthly clean: Jan 01, 2099

+

Current member count: 200

+

Due members: 20

+

Expired members: 100

+

Bay 108 temperature: 21 C

+

Bay 110 temperature: 22 C

+ +