Skip to content

Commit 46e4e79

Browse files
committed
๐Ÿ—‚ :: (#416) ํ™ˆํ™”๋ฉด ๊ธฐ์—…์ฒด ๋ฒ„ํŠผ ์‚ญ์ œ
1 parent 22dcbf9 commit 46e4e79

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

โ€ŽProjects/Presentation/Sources/Home/HomeViewController.swiftโ€Ž

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,14 @@ public final class HomeViewController: BaseReactorViewController<HomeReactor> {
5959
$0.distribution = .fillEqually
6060
$0.spacing = 12
6161
}
62-
private var findCompanysCard = CareerNavigationCard()
6362
private var findWinterRecruitmentsCard = CareerNavigationCard()
6463
private var navigateToEasterEggDidTap = PublishRelay<Void>()
6564
private let employStatusButtonTap = PublishRelay<Void>()
6665
private var cellDisposeBag = DisposeBag()
6766
public override func addView() {
6867
self.view.addSubview(scrollView)
6968
self.scrollView.addSubview(contentView)
70-
[
71-
findCompanysCard,
72-
findWinterRecruitmentsCard
73-
].forEach(careerStackView.addArrangedSubview(_:))
69+
careerStackView.addArrangedSubview(findWinterRecruitmentsCard)
7470
[
7571
bannerView,
7672
recentCompanyMenuLabel,
@@ -146,11 +142,6 @@ public final class HomeViewController: BaseReactorViewController<HomeReactor> {
146142
.bind(to: reactor.action)
147143
.disposed(by: disposeBag)
148144

149-
findCompanysCard.rx.tap
150-
.map { HomeReactor.Action.navigateToCompanyButtonDidTap }
151-
.bind(to: reactor.action)
152-
.disposed(by: disposeBag)
153-
154145
findWinterRecruitmentsCard.rx.tap
155146
.map { HomeReactor.Action.navigateToWinterInternButtonDidTap }
156147
.bind(to: reactor.action)
@@ -246,8 +237,6 @@ public final class HomeViewController: BaseReactorViewController<HomeReactor> {
246237

247238
reactor.state.map { $0.isWinterInternSeason }
248239
.bind { [weak self] in
249-
self?.findCompanysCard.setCard(style: $0 ? .small(type: .findCompanys) : .large)
250-
self?.findCompanysCard.isEnabled = false
251240
self?.findWinterRecruitmentsCard.setCard(style: .small(type: .findWinterRecruitments))
252241
self?.findWinterRecruitmentsCard.isHidden = !$0
253242
}

0 commit comments

Comments
ย (0)