Skip to content

Commit

Permalink
Add privacy policy link
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi committed Jun 30, 2024
1 parent b8a68fa commit 52941cb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
14 changes: 12 additions & 2 deletions LifeSpace/Account/AccountSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct AccountSheet: View {
if let url = getDocumentURL(for: "consent") {
ConsentPDFViewer(url: url)
} else {
Text("Document not found.")
Text("DOCUMENT_NOT_FOUND_MESSAGE")
}
}) {
Text("VIEW_CONSENT_DOCUMENT")
Expand All @@ -76,11 +76,21 @@ struct AccountSheet: View {
if let url = getDocumentURL(for: "hipaaAuthorization") {
ConsentPDFViewer(url: url)
} else {
Text("Document not found.")
Text("DOCUMENT_NOT_FOUND_MESSAGE")
}
}) {
Text("VIEW_HIPAA_AUTHORIZATION")
}
NavigationLink(destination: EmptyView()) {
Button(action: {
if let url = URL(string: "https://michelleodden.com/cardinal-lifespace-privacy-policy/") {
UIApplication.shared.open(url)
}
}) {
Text("VIEW_PRIVACY_POLICY")
}
.buttonStyle(PlainButtonStyle())
}
}
}
}
Expand Down
30 changes: 27 additions & 3 deletions LifeSpace/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,18 @@
}
}
},
"Document not found." : {
"DOCUMENT_NOT_FOUND_MESSAGE" : {

},
"DOCUMENTS_SECTION" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Documents"
}
}
}
},
"ERROR" : {
"localizations" : {
Expand Down Expand Up @@ -463,7 +470,14 @@
}
},
"PREVIOUS_DAY_SURVEY_LABEL" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Yesterday's Survey"
}
}
}
},
"PREVIOUS_DAY_SURVEY_NOTICE" : {
"localizations" : {
Expand Down Expand Up @@ -687,6 +701,16 @@
}
}
},
"VIEW_PRIVACY_POLICY" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "View Privacy Policy"
}
}
}
},
"WELCOME_AREA1_DESCRIPTION" : {
"localizations" : {
"en" : {
Expand Down

0 comments on commit 52941cb

Please sign in to comment.