From 7b5601562f4ab70cd852e94bf51c97e9040329a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Wed, 23 Oct 2019 13:11:06 +0200 Subject: [PATCH] Small fixes. --- app/src/components/App.js | 2 +- app/src/components/Lobby.js | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/src/components/App.js b/app/src/components/App.js index 9cd566b..ce29f80 100644 --- a/app/src/components/App.js +++ b/app/src/components/App.js @@ -29,7 +29,7 @@ const App = (props) => ); } -} +}; App.propTypes = { diff --git a/app/src/components/Lobby.js b/app/src/components/Lobby.js index 0d29762..915bc43 100644 --- a/app/src/components/Lobby.js +++ b/app/src/components/Lobby.js @@ -4,12 +4,8 @@ import { withStyles } from '@material-ui/core/styles'; import { withRoomContext } from '../RoomContext'; import * as stateActions from '../actions/stateActions'; import PropTypes from 'prop-types'; -import Dialog from '@material-ui/core/Dialog'; import Typography from '@material-ui/core/Typography'; import Paper from '@material-ui/core/Paper'; -import DialogActions from '@material-ui/core/DialogActions'; -import Button from '@material-ui/core/Button'; -import TextField from '@material-ui/core/TextField'; const styles = (theme) => ({ @@ -53,9 +49,6 @@ const styles = (theme) => }); const Lobby = ({ - roomClient, - displayName, - changeDisplayName, classes }) => { @@ -70,10 +63,7 @@ const Lobby = ({ Lobby.propTypes = { - roomClient : PropTypes.any.isRequired, - displayName : PropTypes.string.isRequired, - changeDisplayName : PropTypes.func.isRequired, - classes : PropTypes.object.isRequired + classes : PropTypes.object.isRequired }; const mapStateToProps = (state) =>