Skip to content

Commit

Permalink
feat: 이미 제출한 퀴즈 active 버튼 으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
mooyoung2309 committed Nov 22, 2023
1 parent 293927c commit bb6c599
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public struct QuizListItemCellView: View {
}

D3NSubmitButton(
activeTitle: "제출하기",
activeTitle: viewStore.state.isSolved ? "이미 제출했습니다." : "제출하기",
inactiveTitle: viewStore.state.isSolved ? "이미 제출했습니다." : "답을 선택해주세요",
isActive: viewStore.state.isSolved ? false : (viewStore.state.selectedAnswer != nil)
isActive: viewStore.state.isSolved ? true : (viewStore.state.selectedAnswer != nil)
) {
viewStore.send(.submitButtonTappped)
}
Expand Down

0 comments on commit bb6c599

Please sign in to comment.