Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
chore: hide dates banner in favor or value prop button on course dash…
Browse files Browse the repository at this point in the history
…board
  • Loading branch information
saeedbashir committed Mar 15, 2023
1 parent bf1c52d commit b62e706
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Source/CourseOutlineTableSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,14 @@ class CourseOutlineTableController : UITableViewController, CourseVideoTableView
}

func showCourseDateBanner(bannerInfo: DatesBannerInfo) {
courseDateBannerView.bannerInfo = bannerInfo
updateCourseDateBannerView(show: true)
if canShowValueProp && bannerInfo.status == .resetDatesBanner {
courseDateBannerView.bannerInfo = bannerInfo
updateCourseDateBannerView(show: true)
}
else if !canShowValueProp {
courseDateBannerView.bannerInfo = bannerInfo
updateCourseDateBannerView(show: true)
}
}

func hideCourseDateBanner() {
Expand Down

0 comments on commit b62e706

Please sign in to comment.