Skip to content

Commit

Permalink
fix: AlimoNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Jun 27, 2024
1 parent a602f6a commit 5e50901
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Sources/ADS/Component/Notification/AlimoNotification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct AlimoNotification: View {
private let title: String
private let user: String
private let content: String
@State private var isSelected: Bool
@Binding private var isSelected: Bool
private let profileUrl: String?
private let imageUrl: String?
private let date: Date
Expand All @@ -24,7 +24,7 @@ public struct AlimoNotification: View {
_ title: String,
user: String,
content: String,
isSelected: Bool,
isSelected: Binding<Bool>,
profileUrl: String? = nil,
imageUrl: String? = nil,
date: Date,
Expand All @@ -34,7 +34,7 @@ public struct AlimoNotification: View {
self.title = title
self.user = user
self.content = content
self.isSelected = isSelected
self._isSelected = isSelected
self.profileUrl = profileUrl
self.imageUrl = imageUrl
self.date = date
Expand Down Expand Up @@ -109,9 +109,8 @@ public struct AlimoNotification: View {
AlimoColor.Color.primary60 : AlimoColor.Label.alt)
.frame(size: 28)
.button {

bookmarkAction()
isSelected.toggle()
bookmarkAction()
isSelected.toggle()
}

}
Expand All @@ -127,7 +126,7 @@ public struct AlimoNotification: View {
"title",
user: "user",
content: "content",
isSelected: false,
isSelected: .constant(false),
date: .now,
addEmojiAction: {

Expand Down

0 comments on commit 5e50901

Please sign in to comment.