mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -9,9 +9,10 @@ import SwiftUI
|
||||
|
||||
/// Shows source badge only when user has multiple sources configured.
|
||||
struct SourceBadge: View {
|
||||
let source: ContentSource
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
let source: ContentSource
|
||||
|
||||
var body: some View {
|
||||
if shouldShowBadge {
|
||||
HStack(spacing: 2) {
|
||||
|
||||
Reference in New Issue
Block a user