feat: 팔로워 리스트
- 프로필 이미지를 터치하면 프로필 다이얼로그 표시
This commit is contained in:
@@ -11,6 +11,7 @@ import Kingfisher
|
||||
struct FollowerListItemView: View {
|
||||
|
||||
let item: GetFollowerListResponseItem
|
||||
let clickProfile: (Int) -> Void
|
||||
let creatorFollow: (Int) -> Void
|
||||
let showCreatorFollowNotifyDialog: (Int) -> Void
|
||||
|
||||
@@ -28,6 +29,9 @@ struct FollowerListItemView: View {
|
||||
.resizable()
|
||||
.frame(width: 60, height: 60)
|
||||
.clipShape(Circle())
|
||||
.onTapGesture {
|
||||
clickProfile(item.userId)
|
||||
}
|
||||
|
||||
Text(item.nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 16.7))
|
||||
@@ -70,6 +74,7 @@ struct FollowerListItemView_Previews: PreviewProvider {
|
||||
nickname: "상남자",
|
||||
isFollow: false
|
||||
),
|
||||
clickProfile: { _ in },
|
||||
creatorFollow: { _ in },
|
||||
showCreatorFollowNotifyDialog: { _ in }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user