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

Commit

Permalink
chore: update dates shift banner to new design on component screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Umer committed Aug 7, 2023
1 parent 2e737f7 commit 9fde980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/HTMLBlockViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class HTMLBlockViewController: UIViewController, CourseBlockViewController, Prel
private let environment: Environment
private let subkind: CourseHTMLBlockSubkind

private lazy var courseDateBannerView = CourseDateBannerView(frame: .zero)
private lazy var courseDateBannerView = NewCourseDateBannerView(frame: .zero)
private let webController: AuthenticatedWebViewController

private let loader = BackedStream<CourseBlock>()
Expand Down Expand Up @@ -163,7 +163,7 @@ class HTMLBlockViewController: UIViewController, CourseBlockViewController, Prel
courseDateBannerView.bannerInfo = bannerModel.bannerInfo
courseDateBannerView.setupView()
trackDateBannerAppearanceEvent(bannerModel: bannerModel)
height = courseDateBannerView.heightForView(width: view.frame.size.width)
height = StandardVerticalMargin * 16
}
}

Expand Down

0 comments on commit 9fde980

Please sign in to comment.