Moved joined and left notifications to new networking

This commit is contained in:
Mitchell McCaffrey
2021-01-01 14:50:11 +11:00
parent cbcc9ada72
commit 63129dfa14
2 changed files with 35 additions and 5 deletions
-3
View File
@@ -1,7 +1,6 @@
import React, { useContext, useEffect } from "react";
import { Flex, Box, Text } from "theme-ui";
import SimpleBar from "simplebar-react";
import { useToasts } from "react-toast-notifications";
import AddPartyMemberButton from "./AddPartyMemberButton";
import Nickname from "./Nickname";
@@ -28,8 +27,6 @@ function Party({ gameId, stream, partyStreams, onStreamStart, onStreamEnd }) {
const [fullScreen] = useSetting("map.fullScreen");
const [shareDice, setShareDice] = useSetting("dice.shareDice");
const { addToast } = useToasts();
function handleTimerStart(newTimer) {
setPlayerState((prevState) => ({ ...prevState, timer: newTimer }));
}