sass setup + stole github button css >:)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import useWebSocket from "react-use-websocket";
|
||||
import React from "react";
|
||||
import {useParams} from "react-router";
|
||||
import {GHButton} from "../components/Button";
|
||||
|
||||
const Room = () => {
|
||||
|
||||
@@ -29,9 +30,14 @@ const Room = () => {
|
||||
setMessage(event.target.value);
|
||||
}
|
||||
|
||||
const handleLeaveRoom = () => {
|
||||
window.location.href = '/';
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1>Room {roomId}</h1>
|
||||
<GHButton onClick={handleLeaveRoom}>Leave Room</GHButton>
|
||||
<form>
|
||||
<input type="text" name="message" placeholder="Send a message" value={message}
|
||||
onChange={handleMessageChange}/>
|
||||
|
||||
Reference in New Issue
Block a user