[legal-api-links] Load Terms of Use and Privacy Policy from Atomenta API
Terms and Privacy screens now fetch the real PediFoods customer PDFs from the backend instead of showing static placeholder text. Also surfaces both links on the Profile screen below the version label, not just during registration.
This commit is contained in:
@@ -90,7 +90,27 @@ struct ProfileView: View {
|
||||
Text("Versão 1.0b")
|
||||
.font(.system(size: 16, weight: .medium))
|
||||
.foregroundStyle(AppColors.textMuted)
|
||||
.padding(.bottom, 12)
|
||||
|
||||
HStack(spacing: 6) {
|
||||
NavigationLink {
|
||||
TermsOfUseView()
|
||||
} label: {
|
||||
Text("Termos de Uso")
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
|
||||
Text("·")
|
||||
|
||||
NavigationLink {
|
||||
PrivacyPolicyView()
|
||||
} label: {
|
||||
Text("Política de Privacidade")
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
.font(.system(size: 14, weight: .medium))
|
||||
.foregroundStyle(AppColors.textMuted)
|
||||
.padding(.bottom, 12)
|
||||
}
|
||||
}
|
||||
.ignoresSafeArea(edges: .top)
|
||||
|
||||
Reference in New Issue
Block a user