File tree Expand file tree Collapse file tree 1 file changed +18
-23
lines changed
WooCommerce/Classes/ViewRelated/Dashboard/Settings/Beta features Expand file tree Collapse file tree 1 file changed +18
-23
lines changed Original file line number Diff line number Diff line change @@ -23,31 +23,26 @@ struct BetaFeaturesConfiguration: View {
2323 var body : some View {
2424 List {
2525 ForEach ( viewModel. availableFeatures) { feature in
26- Section (
27- footer: VStack (
28- alignment: . leading,
29- spacing: Layout . spacing
30- ) {
31- if let link = feature. descriptionLink {
32- Text (
33- . withEmbeddedLink(
34- mainContent: feature. description,
35- linkText: link. text,
36- link: link. url. absoluteString,
37- font: nil ,
38- foregroundColor: nil
39- )
26+ Section {
27+ TitleAndToggleRow ( title: feature. title, isOn: viewModel. isOn ( feature: feature) )
28+ } footer: {
29+ if let link = feature. descriptionLink {
30+ Text (
31+ . withEmbeddedLink(
32+ mainContent: feature. description,
33+ linkText: link. text,
34+ link: link. url. absoluteString,
35+ font: nil ,
36+ foregroundColor: nil
4037 )
41- . environment ( \ . openURL , OpenURLAction { url in
42- destinationURL = url
43- return . handled
44- } )
45- } else {
46- Text ( feature . description )
47- }
38+ )
39+ . environment ( \ . openURL , OpenURLAction { url in
40+ destinationURL = url
41+ return . handled
42+ } )
43+ } else {
44+ Text ( feature . description )
4845 }
49- ) {
50- TitleAndToggleRow ( title: feature. title, isOn: viewModel. isOn ( feature: feature) )
5146 }
5247 }
5348 }
You can’t perform that action at this time.
0 commit comments