Poll activity
This commit is contained in:
parent
2c63ec3f39
commit
c167717825
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue