Skip to content

Commit

Permalink
[CHORE] #113 : getSelectedDateEvents Private로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 3, 2024
1 parent fd65c94 commit 6fa9e04
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src/main/java/com/wap/wapp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private fun handleBottomBarState(
attendanceManagementNavigationRoute -> setBottomBarState(false)
ManagementSurveyRoute.surveyFormRegistrationRoute -> setBottomBarState(false)
eventRegistrationNavigationRoute -> setBottomBarState(false)
SurveyRoute.answerRoute("{id}") ->setBottomBarState(false)
SurveyRoute.answerRoute("{id}") -> setBottomBarState(false)
else -> setBottomBarState(true)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package com.wap.wapp.feature.notice

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.spring
import androidx.compose.animation.expandVertically
import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
Expand Down Expand Up @@ -134,6 +139,7 @@ private fun EventItem(
Row(
horizontalArrangement = Arrangement.spacedBy(12.dp),
modifier = Modifier
.animateContentSize(animationSpec = spring(dampingRatio = 0.8f, stiffness = 500f))
.padding(vertical = 10.dp)
.height(IntrinsicSize.Min)
.fillMaxWidth(),
Expand All @@ -160,7 +166,11 @@ private fun EventItem(
color = WappTheme.colors.white,
)

if (bottomSheetState.currentValue == SheetValue.Expanded) {
AnimatedVisibility(
visible = bottomSheetState.currentValue != SheetValue.PartiallyExpanded,
enter = expandVertically(),
exit = shrinkVertically(),
) {
Text(
text = event.location,
style = WappTheme.typography.captionRegular,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class NoticeViewModel @Inject constructor(
}
}

fun getSelectedDateEvents() {
private fun getSelectedDateEvents() {
_selectedDateEvents.value = EventsState.Loading
viewModelScope.launch {
getDateEventListUseCase(_selectedDate.value).onSuccess { eventList ->
Expand Down

0 comments on commit 6fa9e04

Please sign in to comment.