From 6c71fa8d65305d2c5bd7b7627e976cc499001584 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 4 Jun 2021 02:52:00 -0400 Subject: [PATCH] profile wip --- vocodes/src/v2/NewTopNavFc.tsx | 8 ++++++-- vocodes/src/v2/profile/ProfileFc.tsx | 29 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/vocodes/src/v2/NewTopNavFc.tsx b/vocodes/src/v2/NewTopNavFc.tsx index 6ddf937a0d..1aaf68dfc8 100644 --- a/vocodes/src/v2/NewTopNavFc.tsx +++ b/vocodes/src/v2/NewTopNavFc.tsx @@ -12,7 +12,8 @@ function NewTopNavFc(props: Props) { if (props.sessionWrapper.isLoggedIn()) { let username = props.sessionWrapper.getUsername(); - myDataLink = `/profile/${username}/data`; + //myDataLink = `/profile/${username}/data`; + myDataLink = `/profile/${username}`; } return ( @@ -34,9 +35,12 @@ function NewTopNavFc(props: Props) { >Upload
+ {/*Pending*/} Pending + >My Data
= []; + + if (userData !== undefined && userData.twitch_username) { + profileRows.push( + + Twitch + {userData.twitch_username} + + ) + } + + if (userData !== undefined && userData.twitter_username) { + profileRows.push( + + Twitter + {userData.twitter_username} + + ) + } + return (

@@ -96,6 +117,14 @@ function ProfileFc(props: Props) {

Profiles are a work in progress.

+
+ + + + {profileRows} + +
+