Refactor Dashboard
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import SwiftUI
|
||||
|
||||
public struct DashboardCardLine: View {
|
||||
private let label: String
|
||||
private let value: String
|
||||
|
||||
public init(_ label: String, _ value: String) {
|
||||
self.label = label
|
||||
self.value = value
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
HStack {
|
||||
Text(label)
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.secondary)
|
||||
Spacer()
|
||||
Text(value)
|
||||
.font(.subheadline)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user