getting list showing now!

This commit is contained in:
talksik
2022-05-13 12:49:19 -05:00
parent 2696a67513
commit bfdf20fef5
5 changed files with 320 additions and 23 deletions
@@ -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