File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 11import { useDispatch , useSelector } from 'react-redux' ;
22
3+ import Button from '@mui/material/Button' ;
34import React from 'react' ;
45import { RootState } from '../../redux/store' ;
6+ import TextField from '@mui/material/TextField' ;
57import { allCooperativeState } from '../../redux/reducers/slice/appStateSlice' ;
68import { changeRoom } from '../../redux/reducers/slice/roomCodeSlice' ;
79import { codePreviewCooperative } from '../../redux/reducers/slice/codePreviewSlice' ;
@@ -91,7 +93,15 @@ const RoomsContainer = () => {
9193 return (
9294 < div >
9395 { ' ' }
94- < input
96+ < TextField
97+ hiddenLabel
98+ id = "filled-hidden-label-small"
99+ defaultValue = "0"
100+ variant = "filled"
101+ size = "small"
102+ onChange = { ( e ) => setRoomCode ( e . target . value ) }
103+ />
104+ { /* <input
95105 type="text"
96106 style={{
97107 margin: '3px 5%',
@@ -101,8 +111,23 @@ const RoomsContainer = () => {
101111 }}
102112 placeholder="Room Code"
103113 onChange={(e) => setRoomCode(e.target.value)}
104- > </ input >
105- < button onClick = { ( ) => joinRoom ( ) } > Join Room</ button >
114+ ></input> */ }
115+ < Button
116+ variant = "contained"
117+ onClick = { ( ) => joinRoom ( ) }
118+ sx = { {
119+ backgroundColor : '#ffffff' ,
120+ color : '#000000' ,
121+ '&:hover' : {
122+ backgroundColor : '#0069d9' ,
123+ borderColor : '#0062cc' ,
124+ boxShadow : 'none'
125+ }
126+ } }
127+ >
128+ Join Room
129+ </ Button >
130+ { /* <button onClick={() => joinRoom()}>Join Room</button> */ }
106131 < p > In Room: { joinedRoom } </ p >
107132 </ div >
108133 ) ;
You can’t perform that action at this time.
0 commit comments