mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
rework some Button to silence linter warnings
This commit is contained in:
parent
f7168ff65a
commit
95a66dba30
3 changed files with 8 additions and 9 deletions
|
|
@ -45,11 +45,10 @@ struct FeedCardNavigationLink: View {
|
|||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Button(
|
||||
action: {
|
||||
viewModel.selectedItem = item
|
||||
viewModel.linkIsActive = true
|
||||
}) {
|
||||
Button {
|
||||
viewModel.selectedItem = item
|
||||
viewModel.linkIsActive = true
|
||||
} label: {
|
||||
NavigationLink(destination: EmptyView()) {
|
||||
EmptyView()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@
|
|||
|
||||
private var innerBody: some View {
|
||||
ForEach(Voices.Languages, id: \.key.self) { language in
|
||||
Button(action: {
|
||||
Button {
|
||||
audioController.defaultLanguage = language.key
|
||||
}) {
|
||||
} label: {
|
||||
HStack {
|
||||
Text(language.name)
|
||||
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ public struct CommunityModal: View {
|
|||
VStack {
|
||||
HStack {
|
||||
Spacer()
|
||||
Button(action: {
|
||||
Button {
|
||||
dismiss()
|
||||
}) {
|
||||
} label: {
|
||||
Image(systemName: "xmark.circle")
|
||||
.padding(10)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue