mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
added view in timeline action, added tests
This commit is contained in:
@@ -28,7 +28,7 @@ struct PollListItem: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
Text(DateFormatter.shortDateFormatter.string(from: pollData.startDate))
|
||||
Text(DateFormatter.pollShortDateFormatter.string(from: pollData.startDate))
|
||||
.foregroundColor(theme.colors.tertiaryContent)
|
||||
.font(theme.fonts.caption1)
|
||||
|
||||
@@ -68,8 +68,8 @@ struct PollListItem: View {
|
||||
}
|
||||
}
|
||||
|
||||
private extension DateFormatter {
|
||||
static let shortDateFormatter: DateFormatter = {
|
||||
extension DateFormatter {
|
||||
static let pollShortDateFormatter: DateFormatter = {
|
||||
let formatter = DateFormatter()
|
||||
formatter.timeStyle = .none
|
||||
formatter.dateStyle = .short
|
||||
|
||||
Reference in New Issue
Block a user