removed unnecassary waiting room component
This commit is contained in:
parent
61a6557e06
commit
47dc85315c
|
|
@ -1,28 +0,0 @@
|
|||
import React, { useEffect } from 'react';
|
||||
import { useCallState } from '@dailyjs/shared/contexts/CallProvider';
|
||||
|
||||
export const WaitingRoom = () => {
|
||||
const { callObject } = useCallState();
|
||||
|
||||
/**
|
||||
* Show notification when waiting participants change.
|
||||
*/
|
||||
useEffect(() => {
|
||||
const handleWaitingParticipantAdded = () => {
|
||||
console.log('people are waiting');
|
||||
// setShowNotification(Object.keys(daily.waitingParticipants()).length > 0);
|
||||
};
|
||||
|
||||
callObject.on('waiting-participant-added', handleWaitingParticipantAdded);
|
||||
return () => {
|
||||
callObject.off(
|
||||
'waiting-participant-added',
|
||||
handleWaitingParticipantAdded
|
||||
);
|
||||
};
|
||||
}, [callObject]);
|
||||
|
||||
return <div>Waiting Room</div>;
|
||||
};
|
||||
|
||||
export default WaitingRoom;
|
||||
|
|
@ -3,7 +3,7 @@ import Modal from '@dailyjs/shared/components/Modal';
|
|||
import { useWaitingRoom } from '@dailyjs/shared/contexts/WaitingRoomProvider';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button } from '../Button';
|
||||
import { WaitingParticipantRow } from '.';
|
||||
import { WaitingParticipantRow } from './WaitingParticipantRow';
|
||||
|
||||
export const WaitingRoomModal = ({ onClose }) => {
|
||||
const { denyAccess, grantAccess, waitingParticipants } = useWaitingRoom();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
export { WaitingRoom as default } from './WaitingRoom';
|
||||
export { WaitingRoom } from './WaitingRoom';
|
||||
export { WaitingRoomModal } from './WaitingRoomModal';
|
||||
export { WaitingRoomNotification } from './WaitingRoomNotification';
|
||||
export { WaitingParticipantRow } from './WaitingParticipantRow';
|
||||
|
|
|
|||
Loading…
Reference in New Issue