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 1
1
import { useDispatch , useSelector } from 'react-redux' ;
2
2
3
+ import Button from '@mui/material/Button' ;
3
4
import React from 'react' ;
4
5
import { RootState } from '../../redux/store' ;
6
+ import TextField from '@mui/material/TextField' ;
5
7
import { allCooperativeState } from '../../redux/reducers/slice/appStateSlice' ;
6
8
import { changeRoom } from '../../redux/reducers/slice/roomCodeSlice' ;
7
9
import { codePreviewCooperative } from '../../redux/reducers/slice/codePreviewSlice' ;
@@ -91,7 +93,15 @@ const RoomsContainer = () => {
91
93
return (
92
94
< div >
93
95
{ ' ' }
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
95
105
type="text"
96
106
style={{
97
107
margin: '3px 5%',
@@ -101,8 +111,23 @@ const RoomsContainer = () => {
101
111
}}
102
112
placeholder="Room Code"
103
113
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> */ }
106
131
< p > In Room: { joinedRoom } </ p >
107
132
</ div >
108
133
) ;
You can’t perform that action at this time.
0 commit comments