Team-def / recre-frontend

RecRe, a recreational game service powered by NextJS
https://treepark.shop
1 stars 3 forks source link

gameSelect 페이지의 모든 버그 수정 #221

Closed poqop721 closed 9 months ago

poqop721 commented 9 months ago
  1. gameSelect 에서 게임 후 들어왔을 때 '우승자는 인원수보다 많을 수 없습니다' 라고 뜨는 버그 수정

    • 게임 시작을 눌렀을 때만 인원수랑 우승자를 비교해서 alert를 띄우게 바꿈
  2. TextField의 input focus가 나가는 문제 해결

    • 원인은 styled 컴포넌트가 gameSelect 컴포넌트 안에 있어서 계속해서 Styled 컴포넌트를 재 생성해서 생기는 문제였다.

    • 해결 방법은 styled를 gameselect 컴포넌트 밖으로 빼서 해결했다.
    • 그 과정에서 props로 colorStyle 변수를 넘겨주는 방식으로 선택했다.

close #198

Designated-Hitter commented 9 months ago

LGTM