From 29fd6b832507d96a3d4edc6bbba36384d5eb749b Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 10 Jan 2022 00:21:20 -0800 Subject: [PATCH] Update demo.tsx --- pages/teams/demo.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/teams/demo.tsx b/pages/teams/demo.tsx index ffb62a2..10b4577 100644 --- a/pages/teams/demo.tsx +++ b/pages/teams/demo.tsx @@ -9,37 +9,37 @@ let testFriends = [ { name: "Liam", role: "engineer", - systemAvatar: "1", + systemAvatar: "01", status: UserStatus.online }, { name: "Emily", role: "engineer", - systemAvatar: "2", + systemAvatar: "02", status: UserStatus.online }, { name: "Paul", role: "architect", - systemAvatar: "3", + systemAvatar: "03", status: UserStatus.online }, { name: "Mark", role: "engineer", - systemAvatar: "4", + systemAvatar: "04", status: UserStatus.busy }, { name: "Adriana", role: "design", - systemAvatar: "5", + systemAvatar: "05", status: UserStatus.busy }, { name: "Josh", role: "design", - systemAvatar: "6", + systemAvatar: "06", status: UserStatus.offline } ] @@ -48,7 +48,7 @@ export default class Demo extends React.Component { constructor(props) { super(props); this.state = { - selectedChannel: 1 + selectedChannel: null } this.handleKeyboardShortcut = this.handleKeyboardShortcut.bind(this); @@ -172,7 +172,7 @@ export default class Demo extends React.Component { {this.statusBubble(friend.status)} - profile + profile @@ -219,20 +219,20 @@ export default class Demo extends React.Component {
{/* dynamic footer based on selection */} -
+
{this.statusBubble(UserStatus.online)} - profile + profile - {testFriends[this.state.selectedChannel].name} + {this.state.selectedChannel == null ? "" : testFriends[this.state.selectedChannel].name} - {testFriends[this.state.selectedChannel].role} + {this.state.selectedChannel == null ? "" : testFriends[this.state.selectedChannel].role}