cleaning up stream provider and starting imnplementation for stream calling and such

This commit is contained in:
talksik
2022-05-18 18:56:26 -05:00
parent 4e81833af5
commit 088228b7a9
4 changed files with 42 additions and 95 deletions
@@ -16,7 +16,7 @@ export default function SidePanel() {
// using merely for loading state...better to add to realtimeroom context?
const { rooms: initialRoomsFetch } = useRooms();
const { user } = useAuth();
const { user, handleLogout } = useAuth();
const { roomsMap, handleSelectLine, selectedLineId, handleShowNewChannelForm } =
useTerminalProvider();
@@ -85,6 +85,13 @@ export default function SidePanel() {
<span className="text-gray-800 font-semibold mx-auto">Channels</span>
)}
<button
onClick={handleLogout}
className="text-gray-300 text-xs px-3 py-2 transition-all hover:bg-gray-200"
>
log out
</button>
<button
onClick={handleFlowState}
className="text-gray-300 text-xs px-3 py-2 transition-all hover:bg-gray-200"