getting list showing now!
This commit is contained in:
@@ -7,32 +7,19 @@ import MasterLineData from '@nirvana/core/models/masterLineData.model';
|
||||
|
||||
import useRooms from '../../../providers/RoomsProvider';
|
||||
import toast from 'react-hot-toast';
|
||||
import SidePanel from './panels/SidePanel';
|
||||
|
||||
export default function Terminal() {
|
||||
const { rooms: initialRoomsState } = useRooms();
|
||||
const { roomsMap } = useRealTimeRooms();
|
||||
const { desktopMode } = useElectron();
|
||||
|
||||
const { user } = useAuth();
|
||||
|
||||
const [selectedLine, setSelectedLine] = useState<MasterLineData>();
|
||||
|
||||
/** show user line details on click of one line */
|
||||
const handleSelectLine = useCallback(
|
||||
(newLineIdToSelect: string) => {
|
||||
toast('selecting line!! NOT IMPLEMENTED');
|
||||
setSelectedLine(roomsMap[newLineIdToSelect]);
|
||||
},
|
||||
[setSelectedLine],
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col flex-1">
|
||||
<NavBar />
|
||||
|
||||
<SidePanel />
|
||||
|
||||
{/* <MainPanel /> */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// have a socket view component to just connect on mount and disconnect from specific | tunes in and untunes similarly
|
||||
// have a socket view component to just tune into tuned in lines
|
||||
// have a stream view component to just make peer connections and have stream components available
|
||||
|
||||
Reference in New Issue
Block a user