Skip to content

Commit

Permalink
feat: remove comment(#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
akrudal committed Jan 15, 2024
1 parent 76352b5 commit 9e40620
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ extension HomeViewReactor {
.flatMap {_ in
let time = self.calculateRemainingTime()

// 시간 이외
guard time > 0 else {
return Observable.concat([
Observable.just(Mutation.hideCamerButton(true)),
Expand All @@ -101,16 +100,17 @@ extension HomeViewReactor {
])
}

// 1시간 전
var observables = [
Observable.just(Mutation.hideCamerButton(false)),
Observable.just(Mutation.setTimer(time))
]

if time <= 3600 && !self.currentState.didPost {
return Observable.concat([
Observable.just(Mutation.setTimer(time)),
Observable.just(Mutation.setTimerColor(.warningRed)),
Observable.just(Mutation.setDescriptionText("시간이 얼마 남지 않았어요!"))
])
observables.append(Observable.just(Mutation.setTimerColor(.warningRed)))
observables.append(Observable.just(Mutation.setDescriptionText("시간이 얼마 남지 않았어요!")))
}

return Observable.just(Mutation.setTimer(time))
return Observable.concat(observables)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ extension HomeViewController {
.bind(onNext: { [weak self] indexPath in
guard let self else { return }
let sectionModel = reactor.currentState.feedSections[indexPath.section]
let selectedItem = sectionModel.items[indexPath.item]

self.navigationController?.pushViewController(
PostListsDIContainer().makeViewController(
Expand Down Expand Up @@ -263,7 +262,6 @@ extension HomeViewController {
.disposed(by: disposeBag)

reactor.pulse(\.$feedSections)
.distinctUntilChanged()
.bind(to: postCollectionView.rx.items(dataSource: createFeedDataSource()))
.disposed(by: disposeBag)

Expand Down

0 comments on commit 9e40620

Please sign in to comment.