@@ -2,7 +2,13 @@ import { Dispatch, SetStateAction } from "react";
2
2
import { toast , ToastContainer } from "react-toastify" ;
3
3
import "react-toastify/dist/ReactToastify.css" ;
4
4
5
- import { Container , Input , Button , FormControl } from "@mui/material" ;
5
+ import {
6
+ Container ,
7
+ Input ,
8
+ Button ,
9
+ FormControl ,
10
+ Typography ,
11
+ } from "@mui/material" ;
6
12
import { styled } from "@mui/system" ;
7
13
import LongTextBox from "./components/LongTextBox.tsx" ;
8
14
import SqaureTextBox from "./components/SqaureTextBox.tsx" ;
@@ -171,6 +177,11 @@ const BingoPresenter = (props: BingoPresenterProps) => {
171
177
) : (
172
178
< Wrapper >
173
179
< MyInfo > My Id: { props . myID } </ MyInfo >
180
+ < Typography > 자기가 하고 있는 일 소개</ Typography >
181
+ < Typography > 올해 이룬 것과 내년 목표 이야기하기</ Typography >
182
+ < Typography > 최근 관심사(일, 취미 등)</ Typography >
183
+ < Typography > 좋아하는 음식</ Typography >
184
+ < Typography > 최근에 듣는 노동요</ Typography >
174
185
{ /* {props.userSelectedWords.map((word) => (
175
186
<LongTextBox key={word} text={word} />
176
187
))} */ }
@@ -204,13 +215,18 @@ const BingoPresenter = (props: BingoPresenterProps) => {
204
215
> </ InputBox >
205
216
< Button
206
217
onClick = { async ( ) => {
218
+ if ( props . opponentID == props . myID ) {
219
+ toast . error ( "내가 나에게 보낼 수 없습니다." ) ;
220
+ return ;
221
+ }
222
+
207
223
const res = await props . onClickSendWords ( props . opponentID ) ;
208
224
if ( res ) {
209
225
toast . success ( "상호작용에 성공했습니다." ) ;
210
226
}
211
227
} }
212
228
>
213
- 내 단어 보내기
229
+ 내 ID 보내기
214
230
</ Button >
215
231
< ToastContainer
216
232
position = "top-right" // 알람 위치 지정
0 commit comments