Skip to content

Commit 9bf7f13

Browse files
committed
remove separators store detail view
1 parent d8a5e9d commit 9bf7f13

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

WooCommerce/Classes/POS/Presentation/Settings/PointOfSaleSettingsStoreDetailView.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ struct PointOfSaleSettingsStoreDetailView: View {
2020
.font(.posBodyMediumRegular())
2121
.foregroundStyle(.secondary)
2222
}
23-
23+
.listRowSeparator(.hidden)
24+
2425
VStack(alignment: .leading, spacing: POSPadding.small) {
2526
Text(Localization.address)
2627
.font(.posBodyMediumRegular())
2728
Text(viewModel.storeAddress)
2829
.font(.posBodyMediumRegular())
2930
.foregroundStyle(.secondary)
3031
}
32+
.listRowSeparator(.hidden)
3133
} header: {
3234
Text(Localization.storeInformation)
3335
.font(.posBodyLargeRegular())
@@ -40,37 +42,47 @@ struct PointOfSaleSettingsStoreDetailView: View {
4042
.font(.posBodyMediumRegular())
4143
settingValueView(for: viewModel.receiptInformation.storeName)
4244
}
45+
.listRowSeparator(.hidden)
4346

4447
VStack(alignment: .leading, spacing: POSPadding.small) {
4548
Text(Localization.physicalAddress)
4649
.font(.posBodyMediumRegular())
4750
settingValueView(for: viewModel.receiptInformation.storeAddress)
4851
}
52+
.listRowSeparator(.hidden)
4953

5054
VStack(alignment: .leading, spacing: POSPadding.small) {
5155
Text(Localization.phoneNumber)
5256
.font(.posBodyMediumRegular())
5357
settingValueView(for: viewModel.receiptInformation.phone)
5458
}
59+
.listRowSeparator(.hidden)
5560

5661
VStack(alignment: .leading, spacing: POSPadding.small) {
5762
Text(Localization.email)
5863
.font(.posBodyMediumRegular())
5964
settingValueView(for: viewModel.receiptInformation.email)
6065
}
61-
66+
.listRowSeparator(.hidden)
67+
6268
VStack(alignment: .leading, spacing: POSPadding.small) {
6369
Text(Localization.refundReturnsPolicy)
6470
.font(.posBodyMediumRegular())
6571
settingValueView(for: viewModel.receiptInformation.refundReturnsPolicy)
6672
}
73+
.listRowSeparator(.hidden)
6774
} header: {
6875
Text(Localization.receiptInformation)
6976
.font(.posBodyLargeRegular())
7077
.textCase(nil)
7178
}
7279
.renderedIf(viewModel.shouldShowReceiptInformation)
7380
}
81+
.listStyle(.plain)
82+
.scrollContentBackground(.hidden)
83+
.background(Color.posOnPrimaryContainer)
84+
.listRowSeparator(.hidden)
85+
.listSectionSeparator(.hidden)
7486
.task {
7587
isLoading = true
7688
await viewModel.retrievePOSReceiptSettings()

0 commit comments

Comments
 (0)