This commit is contained in:
parent
1f5e5c944c
commit
c77e006ce4
|
@ -1,4 +1,7 @@
|
||||||
.meeting-quickjoin {
|
.meeting-quickjoin {
|
||||||
text-align: center
|
text-align: center
|
||||||
|
}
|
||||||
|
|
||||||
|
.meeting {
|
||||||
|
flex-grow: 3;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import JitsiEntrypoint from '../jitsi/JitsiEntrypoint'
|
||||||
import { UserInfo } from '../jitsi/types'
|
import { UserInfo } from '../jitsi/types'
|
||||||
import MeetingNameInput from './MeetingNameInput'
|
import MeetingNameInput from './MeetingNameInput'
|
||||||
import './Meeting.css'
|
import './Meeting.css'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
conferenceData: ConferenceData | undefined
|
conferenceData: ConferenceData | undefined
|
||||||
|
@ -34,12 +35,12 @@ function Meeting(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="meeting">
|
||||||
<MeetingNameInput roomName={roomName} currentUser={userInfo.displayName} />
|
<MeetingNameInput roomName={roomName} currentUser={userInfo.displayName} />
|
||||||
<div className="meeting-quickjoin">
|
<div className="meeting-quickjoin">
|
||||||
{usersData?.roomsData.map((roomData) => {
|
{usersData?.roomsData.map((roomData) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<React.Fragment key={roomData.roomName}>
|
||||||
<h3>
|
<h3>
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
|
@ -54,7 +55,7 @@ function Meeting(props: Props) {
|
||||||
{roomData.participants.map((participant) => (
|
{roomData.participants.map((participant) => (
|
||||||
<div key={participant.jid}> {participant.displayName} </div>
|
<div key={participant.jid}> {participant.displayName} </div>
|
||||||
))}
|
))}
|
||||||
</>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,6 +5,7 @@ import { UsersData } from '../../background/types/roomData'
|
||||||
import useMeetingStarted from '../../hooks/useMeetingStarted'
|
import useMeetingStarted from '../../hooks/useMeetingStarted'
|
||||||
import { useRoomName } from '../../hooks/useRoomName'
|
import { useRoomName } from '../../hooks/useRoomName'
|
||||||
import Chat from '../chat/Chat'
|
import Chat from '../chat/Chat'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
usersData: UsersData
|
usersData: UsersData
|
||||||
|
@ -22,7 +23,7 @@ function Sidebar(props: Props) {
|
||||||
<div className="sidebar-body">
|
<div className="sidebar-body">
|
||||||
{props.usersData.roomsData.map((roomData) => {
|
{props.usersData.roomsData.map((roomData) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<React.Fragment key={roomData.roomName}>
|
||||||
<h3>
|
<h3>
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
|
@ -37,12 +38,12 @@ function Sidebar(props: Props) {
|
||||||
{roomData.participants.map((participant) => (
|
{roomData.participants.map((participant) => (
|
||||||
<div key={participant.jid}> {participant.displayName} </div>
|
<div key={participant.jid}> {participant.displayName} </div>
|
||||||
))}
|
))}
|
||||||
</>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3> No room</h3>
|
<h3>No room</h3>
|
||||||
{props.usersData.usersWithOutRoom.map((user) => (
|
{props.usersData.usersWithOutRoom.map((user) => (
|
||||||
<div key={user.uuid}>{user.name}</div>
|
<div key={user.uuid}>{user.name}</div>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Reference in a new issue