캔 아이콘 변경

This commit is contained in:
Yu Sung
2023-08-20 23:14:00 +09:00
parent 6bc5356ac1
commit 792e029f0d
8 changed files with 21 additions and 11 deletions

View File

@@ -115,6 +115,7 @@ struct LiveRoomView: View {
.padding(.horizontal, 13.3)
LiveRoomTopCreatorView(
creatorId: liveRoomInfo.creatorId,
nickname: liveRoomInfo.creatorNickname,
profileImageUrl: liveRoomInfo.creatorProfileUrl,
isFollowing: liveRoomInfo.isFollowing,
@@ -125,9 +126,9 @@ struct LiveRoomView: View {
},
onClickFollow: {
if $0 {
viewModel.unRegisterNotification()
viewModel.creatorUnFollow()
} else {
viewModel.registerNotification()
viewModel.creatorFollow()
}
}
)
@@ -503,8 +504,8 @@ struct LiveRoomView: View {
onClickRequestSpeaker: {
viewModel.requestSpeaker()
},
registerNotification: { viewModel.registerNotification() },
unRegisterNotification: { viewModel.unRegisterNotification() },
registerNotification: { viewModel.creatorFollow() },
unRegisterNotification: { viewModel.creatorUnFollow() },
onClickProfile: {
if $0 != UserDefaults.int(forKey: .userId) {
viewModel.getUserProfile(userId: $0)
@@ -526,8 +527,8 @@ struct LiveRoomView: View {
viewModel.setManager(userId: $0)
},
onClickReleaseManager: { viewModel.changeListener(peerId: $0, isFromManager: true) },
onClickFollow: { viewModel.registerNotification(creatorId: $0, isGetUserProfile: true) },
onClickUnFollow: { viewModel.unRegisterNotification(creatorId: $0, isGetUserProfile: true) },
onClickFollow: { viewModel.creatorFollow(creatorId: $0, isGetUserProfile: true) },
onClickUnFollow: { viewModel.creatorUnFollow(creatorId: $0, isGetUserProfile: true) },
onClickInviteSpeaker: { inviteSpeaker(peerId: $0) },
onClickChangeListener: {
viewModel.changeListener(peerId: $0)
@@ -722,7 +723,7 @@ struct LiveRoomView: View {
Spacer()
HStack(spacing: 4.7) {
Image("ic_donation_status")
Image("ic_can")
.resizable()
.frame(width: 16, height: 16)