This commit is contained in:
lumaa-dev 2024-09-01 00:50:58 +02:00
parent f459310899
commit 0ab1b16383
2 changed files with 26 additions and 2 deletions

View File

@ -2488,6 +2488,22 @@
} }
} }
}, },
"setting.review" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Write a review"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Écrivez un avis"
}
}
}
},
"setting.support" : { "setting.support" : {
"localizations" : { "localizations" : {
"en" : { "en" : {

View File

@ -5,6 +5,7 @@ import SwiftData
import WatchConnectivity import WatchConnectivity
struct SettingsView: View { struct SettingsView: View {
@Environment(\.openURL) private var openURL: OpenURLAction
@Environment(UniversalNavigator.self) private var uniNav: UniversalNavigator @Environment(UniversalNavigator.self) private var uniNav: UniversalNavigator
@Query private var loggedAccounts: [LoggedAccount] @Query private var loggedAccounts: [LoggedAccount]
@ -99,6 +100,13 @@ struct SettingsView: View {
} }
.listRowThreaded() .listRowThreaded()
Button {
openURL(URL(string: "https://apps.apple.com/app/id6477757490?action=write-review")!)
} label: {
Label("setting.review", systemImage: "star.fill")
}
.listRowThreaded()
Button { Button {
navigator.navigate(to: .support) navigator.navigate(to: .support)
} label: { } label: {