Skip to content

Commit

Permalink
๐ŸŽจ :: ์ฝ”๋“œ Formatting ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
youn9k committed Jun 28, 2024
1 parent 4a26eb9 commit d674176
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions Projects/App/Sources/Application/AppComponent+Notice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public extension AppComponent {
FetchNoticeAllUseCaseImpl(noticeRepository: noticeRepository)
}
}

var fetchNoticePopupUseCase: any FetchNoticePopupUseCase {
shared {
FetchNoticePopupUseCaseImpl(noticeRepository: noticeRepository)
Expand All @@ -48,11 +48,10 @@ public extension AppComponent {
FetchNoticeCategoriesUseCaseImpl(noticeRepository: noticeRepository)
}
}

var fetchNoticeIDListUseCase: any FetchNoticeIDListUseCase {
shared {
FetchNoticeIDListUseCaseImpl(noticeRepository: noticeRepository)
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import BaseFeatureInterface
import FruitDrawFeatureInterface
import MyInfoFeatureInterface
import NeedleFoundation
import SignInFeatureInterface
import NoticeDomainInterface
import SignInFeatureInterface
import UIKit

public protocol MyInfoDependency: Dependency {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import BaseFeature
import Foundation
import LogManager
import NoticeDomainInterface
import ReactorKit
import UserDomainInterface
import Utility
import NoticeDomainInterface

final class MyInfoReactor: Reactor {
enum Action {
Expand Down Expand Up @@ -52,9 +52,9 @@ final class MyInfoReactor: Reactor {
@Pulse var profileImageDidTap: Bool?
@Pulse var navigateType: NavigateType?
}

var initialState: State
private let fetchNoticeIDListUseCase : any FetchNoticeIDListUseCase
private let fetchNoticeIDListUseCase: any FetchNoticeIDListUseCase
private var disposeBag = DisposeBag()

init(
Expand Down Expand Up @@ -127,7 +127,7 @@ final class MyInfoReactor: Reactor {

case let .updatePlatform(platform):
newState.platform = platform

case let .updateIsAllNoticesRead(isAllNoticesRead):
newState.isAllNoticesRead = isAllNoticesRead
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ final class MyInfoViewController: BaseReactorViewController<MyInfoReactor>, Edit
owner.myInfoView.newNotiIndicator.isHidden = isAllNoticesRead
}
.disposed(by: disposeBag)

reactor.state.map(\.isLoggedIn)
.distinctUntilChanged()
.bind(with: self) { owner, isLoggedIn in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class PreferenceManager {

@UserDefaultWrapper(key: Constants.ignoredPopupIDs.rawValue, defaultValue: nil)
public static var ignoredPopupIDs: [Int]?

@UserDefaultWrapper(key: Constants.readNoticeIDs.rawValue, defaultValue: nil)
public static var readNoticeIDs: [Int]?
}
Expand Down

0 comments on commit d674176

Please sign in to comment.