@@ -2,7 +2,13 @@ import { Dispatch, SetStateAction } from "react";
22import { toast , ToastContainer } from "react-toastify" ;
33import "react-toastify/dist/ReactToastify.css" ;
44
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" ;
612import { styled } from "@mui/system" ;
713import LongTextBox from "./components/LongTextBox.tsx" ;
814import SqaureTextBox from "./components/SqaureTextBox.tsx" ;
@@ -171,6 +177,11 @@ const BingoPresenter = (props: BingoPresenterProps) => {
171177 ) : (
172178 < Wrapper >
173179 < MyInfo > My Id: { props . myID } </ MyInfo >
180+ < Typography > 자기가 하고 있는 일 소개</ Typography >
181+ < Typography > 올해 이룬 것과 내년 목표 이야기하기</ Typography >
182+ < Typography > 최근 관심사(일, 취미 등)</ Typography >
183+ < Typography > 좋아하는 음식</ Typography >
184+ < Typography > 최근에 듣는 노동요</ Typography >
174185 { /* {props.userSelectedWords.map((word) => (
175186 <LongTextBox key={word} text={word} />
176187 ))} */ }
@@ -204,13 +215,18 @@ const BingoPresenter = (props: BingoPresenterProps) => {
204215 > </ InputBox >
205216 < Button
206217 onClick = { async ( ) => {
218+ if ( props . opponentID == props . myID ) {
219+ toast . error ( "내가 나에게 보낼 수 없습니다." ) ;
220+ return ;
221+ }
222+
207223 const res = await props . onClickSendWords ( props . opponentID ) ;
208224 if ( res ) {
209225 toast . success ( "상호작용에 성공했습니다." ) ;
210226 }
211227 } }
212228 >
213- 내 단어 보내기
229+ 내 ID 보내기
214230 </ Button >
215231 < ToastContainer
216232 position = "top-right" // 알람 위치 지정
0 commit comments