-
Notifications
You must be signed in to change notification settings - Fork 0
[refactor] ビンゴ判定モーダルの修正 #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
YosukeIida
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| }; | ||
|
|
||
| const resetAll = () => { | ||
| finalizePendingInput(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JudgementModal.tsx resetAll関数のところで, finalizePendingInput(true); これって必要なの?
finalizePendingInput関数って,入力途中の値をビンゴ盤に「保存」する関数であってる?
この行なくてもいいのかもと思ったのですが,どうでしょう??
そうすると,setBingoCard が2回呼ばれなくていいのなと思ったんだけど
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ解決済み?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
解決してます!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
おけまる!マージしちゃいますーーー
hikahana
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応Issue
概要
ビンゴ判定モーダルの選択機能の修正とESLint設定の更新
実装詳細
.vscode/settings.json
"source.fixAll.eslint": trueから"source.fixAll.eslint": "explicit"に変更。view-admin/src/components/common/JudgementModal/JudgementModal.tsx
hasSelection関数の削除(不要な型ガード)。getNextEditableCell関数の削除(自動移動機能を削除)。KEYPAD定数の追加(キーパッドのラベルを定数化)。finalizePendingInput関数の追加(保留中の入力を確定するロジック)。selectedCellのチェックを直接化)。画面スクリーンショット等
テスト項目