File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
WooCommerce/Classes/ViewRelated Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,17 @@ final class ProductReviewsTableViewCell: UITableViewCell {
2424 override func awakeFromNib( ) {
2525 super. awakeFromNib ( )
2626
27+ configureBackground ( )
2728 configureLabels ( )
2829 configureStarView ( )
2930 }
31+ }
32+
33+
34+ private extension ProductReviewsTableViewCell {
35+ func configureBackground( ) {
36+ applyDefaultBackgroundStyle ( )
37+ }
3038
3139 func configureLabels( ) {
3240 reviewLabel. applyBodyStyle ( )
Original file line number Diff line number Diff line change @@ -8,7 +8,23 @@ final class TitleBodyTableViewCell: UITableViewCell {
88 override func awakeFromNib( ) {
99 super. awakeFromNib ( )
1010
11+ configureBackground ( )
12+ configureTitleLabel ( )
13+ configureBodyLabel ( )
14+ }
15+ }
16+
17+
18+ private extension TitleBodyTableViewCell {
19+ func configureBackground( ) {
20+ applyDefaultBackgroundStyle ( )
21+ }
22+
23+ func configureTitleLabel( ) {
1124 titleLabel? . applyHeadlineStyle ( )
25+ }
26+
27+ func configureBodyLabel( ) {
1228 bodyLabel? . applySecondaryBodyStyle ( )
1329 }
1430}
Original file line number Diff line number Diff line change @@ -12,7 +12,23 @@ final class TwoColumnTableViewCell: UITableViewCell {
1212 super. awakeFromNib ( )
1313
1414 stackView. isLayoutMarginsRelativeArrangement = true
15+ configureBackground ( )
16+ configureLeftLabel ( )
17+ configureRightLabel ( )
18+ }
19+ }
20+
21+
22+ private extension TwoColumnTableViewCell {
23+ func configureBackground( ) {
24+ applyDefaultBackgroundStyle ( )
25+ }
26+
27+ func configureLeftLabel( ) {
1528 leftLabel. applyBodyStyle ( )
29+ }
30+
31+ func configureRightLabel( ) {
1632 rightLabel. applyBodyStyle ( )
1733 }
1834}
You can’t perform that action at this time.
0 commit comments