From 4fed7cbb1aa2507dc1ff5e24dba352aa8d3578f7 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Wed, 6 Dec 2023 04:23:17 +0530 Subject: [PATCH] wip session lobby --- jam-ui/src/components/sessions/JKLobbyChat.js | 24 +++++++++++-------- jam-ui/src/components/sessions/JKLobbyUser.js | 23 ++++++++++++++++++ .../components/sessions/JKLobbyUserList.js | 22 +++++++++++++---- .../src/components/sessions/JKSessionUser.js | 2 +- 4 files changed, 56 insertions(+), 15 deletions(-) create mode 100644 jam-ui/src/components/sessions/JKLobbyUser.js diff --git a/jam-ui/src/components/sessions/JKLobbyChat.js b/jam-ui/src/components/sessions/JKLobbyChat.js index 7f46da3c3..f2fd29e04 100644 --- a/jam-ui/src/components/sessions/JKLobbyChat.js +++ b/jam-ui/src/components/sessions/JKLobbyChat.js @@ -3,16 +3,20 @@ import { Card, CardBody, CardFooter, CardHeader, CardText, CardTitle, Button } f function JKLobbyChat() { return ( - - Header - - Special Title Treatment - With supporting text below as a natural lead-in to additional content. - - - + // + // Header + // + // Special Title Treatment + // With supporting text below as a natural lead-in to additional content. + // + // + // +
+
Header
+
Body
+
); } diff --git a/jam-ui/src/components/sessions/JKLobbyUser.js b/jam-ui/src/components/sessions/JKLobbyUser.js new file mode 100644 index 000000000..afcc61ea4 --- /dev/null +++ b/jam-ui/src/components/sessions/JKLobbyUser.js @@ -0,0 +1,23 @@ +import React from 'react'; +import { Row } from 'reactstrap'; +import JKProfileAvatar from '../profiles/JKProfileAvatar'; + +function JKLobbyUser() { + return ( + + +
+ + + +
+
+ + {user.name} + +
+
+ ); +} + +export default JKLobbyUser; diff --git a/jam-ui/src/components/sessions/JKLobbyUserList.js b/jam-ui/src/components/sessions/JKLobbyUserList.js index f8e5d9823..8fe18b2d5 100644 --- a/jam-ui/src/components/sessions/JKLobbyUserList.js +++ b/jam-ui/src/components/sessions/JKLobbyUserList.js @@ -1,18 +1,32 @@ import React from 'react'; import { Table } from 'reactstrap'; import { useTranslation } from 'react-i18next'; +import JKLobbyUser from './JKLobbyUser'; function JKLobbyUserList() { const { t } = useTranslation(); return ( - +
- - + + - + + + + + +
{t('lobby.header.musician', { ns: 'sessions' })}{t('actions', { ns: 'common' })} + {t('lobby.header.musician', { ns: 'sessions' })} + + {t('actions', { ns: 'common' })} +
+ + + Actions +
); } diff --git a/jam-ui/src/components/sessions/JKSessionUser.js b/jam-ui/src/components/sessions/JKSessionUser.js index fff23d771..596fc5422 100644 --- a/jam-ui/src/components/sessions/JKSessionUser.js +++ b/jam-ui/src/components/sessions/JKSessionUser.js @@ -1,4 +1,4 @@ -import React, { useState, useCallback, useEffect } from 'react'; +import React, { useState, useCallback } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { fetchPerson } from '../../store/features/sessionsSlice'; import { useResponsive } from '@farfetch/react-context-responsive';