refactor(creator): 오디오 아이템 이름을 정리한다

This commit is contained in:
Yu Sung
2026-07-04 01:48:35 +09:00
parent 0b32a536c9
commit abc10d7610
6 changed files with 76 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
import SwiftUI
struct CreatorChannelLiveReplayListItem: View {
struct CreatorChannelAudioContentListItem: View {
let audioContent: CreatorChannelAudioContentResponse
let action: () -> Void
@@ -144,10 +144,10 @@ struct CreatorChannelLiveReplayListItem: View {
}
}
struct CreatorChannelLiveReplayListItem_Previews: PreviewProvider {
struct CreatorChannelAudioContentListItem_Previews: PreviewProvider {
static var previews: some View {
VStack(spacing: SodaSpacing.s8) {
CreatorChannelLiveReplayListItem(
CreatorChannelAudioContentListItem(
audioContent: CreatorChannelAudioContentResponse(
audioContentId: 1,
title: "라이브 다시듣기 제목이 두 줄까지 표시됩니다",
@@ -164,7 +164,7 @@ struct CreatorChannelLiveReplayListItem_Previews: PreviewProvider {
)
)
CreatorChannelLiveReplayListItem(
CreatorChannelAudioContentListItem(
audioContent: CreatorChannelAudioContentResponse(
audioContentId: 1,
title: "라이브 다시듣기 제목이 두 줄까지 표시됩니다",
@@ -181,7 +181,7 @@ struct CreatorChannelLiveReplayListItem_Previews: PreviewProvider {
)
)
CreatorChannelLiveReplayListItem(
CreatorChannelAudioContentListItem(
audioContent: CreatorChannelAudioContentResponse(
audioContentId: 1,
title: "라이브 다시듣기 제목이 두 줄까지 표시됩니다",
@@ -198,7 +198,7 @@ struct CreatorChannelLiveReplayListItem_Previews: PreviewProvider {
)
)
CreatorChannelLiveReplayListItem(
CreatorChannelAudioContentListItem(
audioContent: CreatorChannelAudioContentResponse(
audioContentId: 1,
title: "라이브 다시듣기 제목이 두 줄까지 표시됩니다",

View File

@@ -30,7 +30,7 @@ struct CreatorChannelAudioSection: View {
ForEach(audioContentColumns.indices, id: \.self) { index in
VStack(alignment: .leading, spacing: SodaSpacing.s8) {
ForEach(audioContentColumns[index]) { audioContent in
CreatorChannelAudioContentListItem(audioContent: audioContent) {
CreatorChannelHomeAudioContentListItem(audioContent: audioContent) {
onTapContent(audioContent.audioContentId)
}
}

View File

@@ -1,6 +1,6 @@
import SwiftUI
struct CreatorChannelAudioContentListItem: View {
struct CreatorChannelHomeAudioContentListItem: View {
let audioContent: CreatorChannelAudioContentResponse
let action: () -> Void
@@ -147,9 +147,9 @@ struct CreatorChannelAudioFreeTag: View {
}
}
struct CreatorChannelAudioContentListItem_Previews: PreviewProvider {
struct CreatorChannelHomeAudioContentListItem_Previews: PreviewProvider {
static var previews: some View {
CreatorChannelAudioContentListItem(
CreatorChannelHomeAudioContentListItem(
audioContent: CreatorChannelAudioContentResponse(
audioContentId: 1,
title: "콘텐츠 이름이 한 줄 콘텐츠 이름이 한 줄 콘텐츠 이름이 한 줄",

View File

@@ -54,7 +54,7 @@ struct CreatorChannelLiveTabView: View {
.padding(.bottom, SodaSpacing.s12)
ForEach(viewModel.liveReplayContents) { audioContent in
CreatorChannelLiveReplayListItem(audioContent: audioContent) {
CreatorChannelAudioContentListItem(audioContent: audioContent) {
onTapContent(audioContent.audioContentId)
}
.onAppear {