Skip to content

Commit 7ee526a

Browse files
committed
Add comments to FreeStagingDomainView.
1 parent 1766c0d commit 7ee526a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Domains/FreeStagingDomainView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import SwiftUI
22

3+
/// Shows a site's free staging domain, with an optional badge if the domain is the primary domain.
34
struct FreeStagingDomainView: View {
45
let domain: DomainSettingsViewModel.FreeStagingDomain
56

@@ -11,6 +12,7 @@ struct FreeStagingDomainView: View {
1112
.bold()
1213
}
1314
if domain.isPrimary {
15+
// TODO: 8558 - refactor to reuse `BadgeView`
1416
Text(Localization.primaryDomainNotice)
1517
.foregroundColor(Color(.textBrand))
1618
.padding(.leading, Layout.horizontalPadding)
@@ -38,7 +40,7 @@ private extension FreeStagingDomainView {
3840
}
3941
}
4042

41-
extension FreeStagingDomainView {
43+
private extension FreeStagingDomainView {
4244
enum Layout {
4345
static let horizontalPadding: CGFloat = 6
4446
static let verticalPadding: CGFloat = 4

0 commit comments

Comments
 (0)