Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,92 +90,87 @@ internal fun LessonDetailBeforeScreen(
.background(Blue50)
.statusBarsPadding(),
)

Column(
modifier = Modifier
.verticalScroll(rememberScrollState())
.weight(1f)
.background(color = Blue50),
) {
Spacer(modifier = Modifier.height(16.dp))

LessonBanner(
lessonBannerState = lessonBannerState,
beforeLessonText = "강습을 준비해주세요",
)

Column(
modifier = Modifier
.verticalScroll(rememberScrollState())
.weight(1f)
.fillMaxWidth()
.background(color = Blue50)
Comment thread
apffkxhsls marked this conversation as resolved.
.background(
color = SSINGTheme.colors.backgroundNormal,
shape = RoundedCornerShape(
topStart = 12.dp,
topEnd = 12.dp,
)
)
.padding(horizontal = 16.dp)
) {
Comment thread
apffkxhsls marked this conversation as resolved.
Spacer(modifier = Modifier.height(16.dp))

LessonBanner(
lessonBannerState = lessonBannerState,
beforeLessonText = "강습을 준비해주세요",
SectionTitle(text = "강습 정보")
Spacer(modifier = Modifier.height(8.dp))
SsingMatchingDetailCardSmall(
tags = before.tags,
teamNicknames = before.nicknames,
totalCount = before.teams.size,
place = before.location,
duration = before.duration,
price = before.price,
)

Column(
modifier = Modifier
.fillMaxWidth()
.background(
color = SSINGTheme.colors.backgroundNormal,
shape = RoundedCornerShape(
topStart = 12.dp,
topEnd = 12.dp,
)
)
.padding(horizontal = 16.dp)
) {
Spacer(modifier = Modifier.height(16.dp))
SectionTitle(text = "강습 정보")
Spacer(modifier = Modifier.height(8.dp))
SsingMatchingDetailCardSmall(
tags = before.tags,
teamNicknames = before.nicknames,
totalCount = before.teams.size,
place = before.location,
duration = before.duration,
price = before.price,
Spacer(modifier = Modifier.height(24.dp))
SectionTitle(text = "강습생 정보")
Spacer(modifier = Modifier.height(8.dp))
before.teams.forEachIndexed { index, team ->
ConsumerInfoCard(
isReady = team.isReady ?: false,
nickname = team.teamNickname,
participants = team.participants,
price = team.price,
)

Spacer(modifier = Modifier.height(24.dp))
SectionTitle(text = "강습생 정보")
Spacer(modifier = Modifier.height(8.dp))
before.teams.forEachIndexed { index, team ->
ConsumerInfoCard(
isReady = team.isReady ?: false,
nickname = team.teamNickname,
participants = team.participants,
price = team.price,
)
if (index != before.teams.lastIndex) {
Spacer(modifier = Modifier.height(4.dp))
}
if (index != before.teams.lastIndex) {
Spacer(modifier = Modifier.height(4.dp))
}
}

Spacer(modifier = Modifier.height(24.dp))
Text(
text = "강습 관리",
style = SSINGTheme.typography.caption.sb12,
color = SSINGTheme.colors.textAlternative,
modifier = Modifier.padding(bottom = 8.dp),
Spacer(modifier = Modifier.height(24.dp))
Text(
text = "강습 관리",
style = SSINGTheme.typography.caption.sb12,
color = SSINGTheme.colors.textAlternative,
modifier = Modifier.padding(bottom = 8.dp),
)
Row(
horizontalArrangement = Arrangement.spacedBy(8.dp),
modifier = Modifier.fillMaxWidth(),
) {
SsingButton(
text = "강습 취소",
onClick = onCancelSheetOpen,
style = SsingButtonStyle.RED,
modifier = Modifier.weight(1f),
)
Row(
horizontalArrangement = Arrangement.spacedBy(8.dp),
modifier = Modifier.fillMaxWidth(),
) {
SsingButton(
text = "강습 취소",
onClick = onCancelSheetOpen,
style = SsingButtonStyle.RED,
modifier = Modifier.weight(1f),
)

SsingButton(
text = "채팅방",
onClick = onChatRoomClick,
style = SsingButtonStyle.GRAY,
modifier = Modifier.weight(1f),
)
}
Spacer(modifier = Modifier.height(16.dp))
SsingButton(
text = "채팅방",
onClick = onChatRoomClick,
style = SsingButtonStyle.GRAY,
modifier = Modifier.weight(1f),
)
}
Spacer(modifier = Modifier.height(16.dp))
}
}

SsingButton(
text = if (before.isInstructorReady) "강습 대기중" else "강습 준비 완료",
onClick = onReadyButtonClick,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ internal fun LessonDetailCanceledScreen(
.background(Blue50)
.statusBarsPadding(),
)
Column(
modifier = Modifier
.weight(1f)
.background(color = Blue50),
) {
Column(
modifier = Modifier
.verticalScroll(rememberScrollState())
Expand All @@ -76,6 +71,7 @@ internal fun LessonDetailCanceledScreen(
Column(
modifier = Modifier
.weight(1f)
.background(color = Blue50)
.background(
color = SSINGTheme.colors.backgroundNormal,
shape = RoundedCornerShape(
Expand Down Expand Up @@ -142,7 +138,6 @@ internal fun LessonDetailCanceledScreen(
Spacer(modifier = Modifier.height(16.dp))
}
}
}
SsingButton(
text = "씽 매칭으로 돌아가기",
onClick = onMatchingClick,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,88 +57,84 @@ internal fun LessonDetailCompletedScreen(
)
Column(
modifier = Modifier
.verticalScroll(rememberScrollState())
.weight(1f)
.background(color = Blue50),
) {
Spacer(modifier = Modifier.height(16.dp))

LessonBanner(
lessonBannerState = lessonBannerState
)

Column(
modifier = Modifier
.verticalScroll(rememberScrollState())
.weight(1f)
.fillMaxWidth()
.background(color = Blue50)
.background(
color = SSINGTheme.colors.backgroundNormal,
shape = RoundedCornerShape(
topStart = 12.dp,
topEnd = 12.dp,
)
)
.padding(horizontal = 16.dp)
) {
Spacer(modifier = Modifier.height(16.dp))

LessonBanner(
lessonBannerState = lessonBannerState
SectionTitle(text = "강습 정보")
Spacer(modifier = Modifier.height(8.dp))
SsingMatchingDetailCardSmall(
tags = completed.tags,
teamNicknames = completed.teams.map { it.teamNickname }.toPersistentList(),
totalCount = completed.teams.size,
actualTimeRange = completed.lessonTime,
place = completed.location,
duration = completed.duration,
price = completed.price,
)

Column(
modifier = Modifier
.weight(1f)
.background(
color = SSINGTheme.colors.backgroundNormal,
shape = RoundedCornerShape(
topStart = 12.dp,
topEnd = 12.dp,
)
)
.padding(horizontal = 16.dp)
) {
Spacer(modifier = Modifier.height(16.dp))
SectionTitle(text = "강습 정보")
Spacer(modifier = Modifier.height(8.dp))
SsingMatchingDetailCardSmall(
tags = completed.tags,
teamNicknames = completed.teams.map { it.teamNickname }.toPersistentList(),
totalCount = completed.teams.size,
actualTimeRange = completed.lessonTime,
place = completed.location,
duration = completed.duration,
price = completed.price,
Spacer(modifier = Modifier.height(24.dp))
SectionTitle(text = "강습생 정보")
Spacer(modifier = Modifier.height(8.dp))
completed.teams.forEachIndexed { index, team ->
ConsumerInfoCard(
isReady = false,
nickname = team.teamNickname,
participants = team.participants,
price = team.price,
)

Spacer(modifier = Modifier.height(24.dp))
SectionTitle(text = "강습생 정보")
Spacer(modifier = Modifier.height(8.dp))
completed.teams.forEachIndexed { index, team ->
ConsumerInfoCard(
isReady = false,
nickname = team.teamNickname,
participants = team.participants,
price = team.price,
)
if (index != completed.teams.lastIndex) {
Spacer(modifier = Modifier.height(4.dp))
}
if (index != completed.teams.lastIndex) {
Spacer(modifier = Modifier.height(4.dp))
}
}

Spacer(modifier = Modifier.height(24.dp))
Text(
text = "강습 관리",
style = SSINGTheme.typography.caption.sb12,
color = SSINGTheme.colors.textAlternative,
modifier = Modifier.padding(bottom = 8.dp),
Spacer(modifier = Modifier.height(24.dp))
Text(
text = "강습 관리",
style = SSINGTheme.typography.caption.sb12,
color = SSINGTheme.colors.textAlternative,
modifier = Modifier.padding(bottom = 8.dp),
)
Row(
horizontalArrangement = Arrangement.spacedBy(4.dp),
modifier = Modifier.fillMaxWidth(),
) {
SsingButton(
text = "채팅방",
onClick = onChatRoomClick,
style = SsingButtonStyle.GRAY,
modifier = Modifier.weight(1f),
)
SsingButton(
text = "강습 후기",
onClick = onEndClick,
style = SsingButtonStyle.GRAY,
modifier = Modifier.weight(1f),
)
Row(
horizontalArrangement = Arrangement.spacedBy(4.dp),
modifier = Modifier.fillMaxWidth(),
) {
SsingButton(
text = "채팅방",
onClick = onChatRoomClick,
style = SsingButtonStyle.GRAY,
modifier = Modifier.weight(1f),
)
SsingButton(
text = "강습 후기",
onClick = onEndClick,
style = SsingButtonStyle.GRAY,
modifier = Modifier.weight(1f),
)
}
Spacer(modifier = Modifier.height(16.dp))
}
Spacer(modifier = Modifier.height(16.dp))
}
}

SsingButton(
text = "정산 보기",
onClick = onEndClick,
Expand Down Expand Up @@ -187,4 +183,4 @@ private fun LessonDetailCompletedScreenPreview() {
),
)
}
}
}
Loading
Loading