Poll activity

This commit is contained in:
Lumaa 2024-03-09 16:09:03 +01:00
parent 2c63ec3f39
commit c167717825
1 changed files with 10 additions and 1 deletions

View File

@ -151,8 +151,10 @@ struct NotificationRow: View {
return "activity.status.\(nameStr)"
case .update:
return "activity.update.\(nameStr)"
case .poll:
return "activity.poll.\(nameStr)"
default:
return "activity.unknown" // follow requests & polls
return "activity.unknown" // follow requests
}
}
@ -168,6 +170,8 @@ struct NotificationRow: View {
return Color.orange
case .status, .update: // update and post are techn. the same
return Color.yellow
case .poll:
return Color.green
default:
return Color.gray
}
@ -209,6 +213,11 @@ struct NotificationRow: View {
.resizable()
.scaledToFit()
.frame(width: size, height: size)
case .poll:
Image(systemName: "checklist")
.resizable()
.scaledToFit()
.frame(width: size, height: size)
default:
Image(systemName: "questionmark")
.resizable()