Skip to content

Commit 905aa19

Browse files
committed
Move updated label below store name
1 parent 338b94a commit 905aa19

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

WooCommerce/StoreWidgets/StoreInfoWidget.swift

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,22 @@ private struct StoreInfoView: View {
4040

4141
VStack(spacing: Layout.sectionSpacing) {
4242

43-
// Store Name
44-
HStack {
45-
Text(entry.name)
46-
.storeNameStyle()
43+
VStack(spacing: Layout.cardSpacing) {
44+
// Store Name
45+
HStack {
46+
Text(entry.name)
47+
.storeNameStyle()
48+
49+
Spacer()
4750

48-
Spacer()
51+
Text(entry.range)
52+
.statRangeStyle()
53+
}
4954

50-
Text(entry.range)
55+
// Updated at
56+
Text(Localization.updatedAt(entry.updatedTime))
5157
.statRangeStyle()
58+
.frame(maxWidth: .infinity, alignment: .leading)
5259
}
5360

5461
// Revenue & Visitors
@@ -93,10 +100,6 @@ private struct StoreInfoView: View {
93100
}
94101
.frame(maxWidth: .infinity, alignment: .leading)
95102
}
96-
97-
Text(Localization.updatedAt(entry.updatedTime))
98-
.statRangeStyle()
99-
.frame(maxWidth: .infinity, alignment: .leading)
100103
}
101104
.padding(.horizontal)
102105
}

0 commit comments

Comments
 (0)