diff --git a/src/Bootstrap.tsx b/src/Bootstrap.tsx index f687001..8eb0a4d 100644 --- a/src/Bootstrap.tsx +++ b/src/Bootstrap.tsx @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react' import { Routes, Route } from 'react-router-dom' import { v4 as uuid } from 'uuid' import localforage from 'localforage' +import Box from '@mui/material/Box' import { Home } from 'pages/Home/' import { PublicRoom } from 'pages/PublicRoom/' @@ -47,7 +48,7 @@ function Bootstrap({ }, [hasLoadedSettings, persistedStorage, settings, userId]) return ( -
+ {hasLoadedSettings ? ( {['/', '/index.html'].map(path => ( @@ -59,7 +60,7 @@ function Bootstrap({ /> ) : null} -
+ ) } diff --git a/src/components/ChatTranscript/ChatTranscript.tsx b/src/components/ChatTranscript/ChatTranscript.tsx index 5889a3a..4064665 100644 --- a/src/components/ChatTranscript/ChatTranscript.tsx +++ b/src/components/ChatTranscript/ChatTranscript.tsx @@ -1,5 +1,6 @@ import { HTMLAttributes } from 'react' import cx from 'classnames' +import Box from '@mui/material/Box' import { Message as IMessage } from 'models/chat' import { Message } from 'components/Message' @@ -15,10 +16,10 @@ export const ChatTranscript = ({ userId, }: ChatTranscriptProps) => { return ( -
+ {messageLog.map(message => { return })} -
+ ) } diff --git a/src/components/Room/Room.tsx b/src/components/Room/Room.tsx index 1c507d6..8800479 100644 --- a/src/components/Room/Room.tsx +++ b/src/components/Room/Room.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react' import { v4 as uuid } from 'uuid' +import Box from '@mui/material/Box' import FormControl from '@mui/material/FormControl' import Typography from '@mui/material/Typography' import Stack from '@mui/material/Stack' @@ -97,7 +98,7 @@ export function Room({ }) return ( -
+ Room ID: {roomId} -
+ ) } diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx index 0312467..8c5aa47 100644 --- a/src/pages/Home/Home.tsx +++ b/src/pages/Home/Home.tsx @@ -1,6 +1,7 @@ import React, { useState } from 'react' import { useNavigate } from 'react-router-dom' import Button from '@mui/material/Button' +import Box from '@mui/material/Box' import FormControl from '@mui/material/FormControl' import Typography from '@mui/material/Typography' import TextField from '@mui/material/TextField' @@ -21,7 +22,7 @@ export function Home() { } return ( -
+
chitchatter @@ -55,6 +56,6 @@ export function Home() { -
+ ) }