From 2e740cbf81f41804cdf7cf355c3d41de9eca2ac7 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 22 Mar 2021 16:10:30 +0100 Subject: private games / link invites working :tada: --- pages/game.tsx | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'pages') diff --git a/pages/game.tsx b/pages/game.tsx index 29eb4f0..4fa58a9 100644 --- a/pages/game.tsx +++ b/pages/game.tsx @@ -3,6 +3,8 @@ import axios from 'axios'; import * as cookies from 'react-cookies'; import { SocketContext } from '../components/socketContext'; import { Socket } from 'socket.io-client'; +import Icon from '@mdi/react'; +import copy from 'copy-to-clipboard'; import { NavBar } from '../components/navbar'; import { CenteredPage } from '../components/page'; @@ -17,6 +19,7 @@ import WifiTetheringRoundedIcon from '@material-ui/icons/WifiTetheringRounded'; import LinkRoundedIcon from '@material-ui/icons/LinkRounded'; import RefreshIcon from '@material-ui/icons/Refresh'; import FlagOutlinedIcon from '@material-ui/icons/FlagOutlined'; +import { mdiContentCopy } from '@mdi/js'; function VoerGame(props: { gameID: string; @@ -58,8 +61,8 @@ function VoerGame(props: { props.io.on("resign", () => { props.toast({ message: "Het potje is opgegeven", - type: "normal", - icon: }); + type: "normal", + icon: }); }); }, []); @@ -227,10 +230,7 @@ export default function GamePage() { }}> -