Skip to content

Commit

Permalink
feat: 뒤로가기 버튼 및 최종 수정 완료
Browse files Browse the repository at this point in the history
스터디 등록 뷰 완료
  • Loading branch information
syss220211 authored Aug 25, 2023
2 parents b66b312 + 8490526 commit 0ee91a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ struct AddStudyMain: View {
guard let test = selectedItem else {
let newStudy = StudyRecruitModel(creator: "", studyTitle: studyTitle, startAt: startDate, dueAt: dueDate, description: studyText, isOnline: onlineToggle, isOffline: offlineToggle, locationName: sharedViewModel.selectedLocality, reportCount: 0, studyImagePath: studyImagePath, studyCount: studyCount)
studyStoreViewModel.addFeed(newStudy)
dismiss()
return
}

Expand All @@ -95,6 +96,9 @@ struct AddStudyMain: View {

studyStoreViewModel.addFeed(newStudy)
}

addStudy.toggle()
dismiss()
}
.disabled(studyTitle.isEmpty || studyText.isEmpty)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ struct project02_teamB_OUR_consumerApp: App {
var body: some Scene {
WindowGroup {
// NavigationStack {
// LoginView()
AddStudyMain()
LoginView()
// AddStudyMain()
}
}
}

0 comments on commit 0ee91a4

Please sign in to comment.