Skip to content

Commit

Permalink
Merge pull request #1693 from HedvigInsurance/fix/addon/spacing-align…
Browse files Browse the repository at this point in the history
…ment-confirm-addon

Addon UI fix: spacing and alignment for confirmation
  • Loading branch information
juliaendre authored Jan 24, 2025
2 parents e6f1952 + 7621220 commit 326b56f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public struct ChangeAddonNavigation: View {
content: {
ConfirmChangeAddonScreen()
.embededInNavigation(
options: .navigationBarHidden,
tracking: ChangeAddonTrackingType.confirmAddonScreen
)
.environmentObject(changeAddonNavigationVm)
Expand Down
5 changes: 2 additions & 3 deletions Projects/Addons/Sources/Views/ConfirmChangeAddonScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ public struct ConfirmChangeAddonScreen: View {
.hFormAttachToBottom {
hSection {
VStack(spacing: .padding32) {
VStack(spacing: 0) {
VStack(alignment: .leading, spacing: 0) {
hText(L10n.addonFlowConfirmationTitle)
hText(
L10n.addonFlowConfirmationDescription(
addonNavigationVm.changeAddonVm!.addonOffer?.activationDate?
.displayDateDDMMMYYYYFormat ?? ""
)
)
.multilineTextAlignment(.center)
.foregroundColor(hTextColor.Translucent.secondary)
}
VStack(spacing: .padding8) {
Expand All @@ -38,9 +37,9 @@ public struct ConfirmChangeAddonScreen: View {
} content: {
hText(L10n.generalCloseButton)
}

}
}
.padding(.top, .padding24)
}
.sectionContainerStyle(.transparent)
}
Expand Down

0 comments on commit 326b56f

Please sign in to comment.