Moved to simple peer

This commit is contained in:
Mitchell McCaffrey
2020-04-05 22:20:34 +10:00
parent 7ac13c1145
commit 8361d6eb0b
11 changed files with 475 additions and 443 deletions

View File

@@ -3,7 +3,7 @@ import { IconButton, Flex, Box, Label, Text } from "theme-ui";
import Modal from "./Modal";
function AddPartyMemberButton({ peerId }) {
function AddPartyMemberButton({ gameId }) {
const [isAddModalOpen, setIsAddModalOpen] = useState(false);
function openModal() {
setIsAddModalOpen(true);
@@ -32,7 +32,7 @@ function AddPartyMemberButton({ peerId }) {
<Box>
<Label p={2}>Other people can join using your ID ʕʔ</Label>
<Box p={2} bg="hsla(230, 20%, 0%, 20%)">
<Text>{peerId}</Text>
<Text>{gameId}</Text>
</Box>
</Box>
</Modal>