Skip to content

Commit

Permalink
feature #50 : EventItem Text Alignment 수정 및 Event Id -> Title
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Nov 28, 2023
1 parent 8ac8fe9 commit 6d8aac2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ data class Event(
val eventId: Int,
val location: String,
val period: LocalDate,
val id: String,
val title: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data class EventResponse(
content = content,
eventId = eventId,
location = location,
id = title,
title = title,
period = LocalDate.parse(this.period, formatter),
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ private fun ManagementEventItem(
) {
Column(
modifier = Modifier.weight(1f),
verticalArrangement = Arrangement.spacedBy(16.dp),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(5.dp),
horizontalAlignment = Alignment.Start,
) {
Text(
text = item.content,
text = item.title,
style = WappTheme.typography.contentMedium,
color = WappTheme.colors.white,
maxLines = 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class ManagementViewModel @Inject constructor(

init {
hasManagerState()
_managerState.value = ManagerState.Manager
}

private fun hasManagerState() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private fun EventsList(events: List<Event>) {
) {
itemsIndexed(
items = events,
key = { _, event -> event.id },
key = { _, event -> event.title },
) { _, event ->
EventItem(event = event)
}
Expand Down Expand Up @@ -136,7 +136,7 @@ private fun EventItem(event: Event) {
modifier = Modifier.padding(start = 12.dp),
) {
Text(
text = event.id,
text = event.title,
style = WappTheme.typography.contentRegular,
color = WappTheme.colors.white,
)
Expand Down

0 comments on commit 6d8aac2

Please sign in to comment.