Skip to content

Commit

Permalink
[Feat] TraineeHome -> TraineeAddDietRecord 화면 흐름 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
FpRaArNkK committed Feb 11, 2025
1 parent f935180 commit c02c951
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public struct TraineeAddDietRecordView: View {
}
.padding(.bottom, .safeAreaBottom + 20)
}
.keyboardDismissOnTap()
}
.onTapGesture { focusedField = nil }
.navigationBarBackButtonHidden()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public struct TraineeMainFlowFeature {
case .addWorkoutRecordPage:
return .none
case .addDietRecordPage:
state.path.append(.addDietRecordPage(.init()))
return .none
case .traineeInvitationCodeInput:
state.path.append(.traineeInvitationCodeInput(.init(view_navigationType: .existingUser)))
Expand Down Expand Up @@ -134,6 +135,8 @@ extension TraineeMainFlowFeature {
// MARK: Home
/// 알림 목록
case alarmCheck(AlarmCheckFeature)
/// 식단 기록 추가
case addDietRecordPage(TraineeAddDietRecordFeature)

// MARK: MyPage
/// 트레이니 초대 코드입력
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public struct TraineeMainFlowView: View {
// MARK: Home
case .alarmCheck(let store):
AlarmCheckView(store: store)
case .addDietRecordPage(let store):
TraineeAddDietRecordView(store: store)

// MARK: MyPage
case .traineeInvitationCodeInput(let store):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ public struct TraineeHomeFeature {
return .none

case .tapAddDietRecordButton:
// TODO: 네비게이션 연결 시 추가
print("tapAddMealRecordButton")
return .none
state.view_isBottomSheetPresented = false
return .send(.setNavigating(.addDietRecordPage))

case .tapPopUpNextButton:
if state.isHideUntilSelected {
Expand Down

0 comments on commit c02c951

Please sign in to comment.