Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

πŸ”€ :: (#152) μ§„λ£Œ μ˜ˆμ•½ λ‚ μ§œ 였λ₯˜ μˆ˜μ • #153

Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -47,6 +47,7 @@ import com.signal.signal_android.designsystem.foundation.SignalColor
import com.signal.signal_android.designsystem.textfield.SignalTextField
import com.signal.signal_android.designsystem.util.signalClickable
import com.signal.signal_android.feature.coin.CoinDialog
import com.signal.signal_android.feature.coin.CoinSideEffect
import com.signal.signal_android.feature.coin.CoinViewModel
import org.koin.androidx.compose.koinViewModel
import java.time.Instant
Expand Down Expand Up @@ -100,6 +101,16 @@ internal fun CreateReservation(
}
}

LaunchedEffect(Unit) {
coinViewModel.sideEffect.collect {
when (it) {
is CoinSideEffect.Success -> {
showCoinDialog = true
}
}
}
}

if (showCoinDialog) {
Dialog(onDismissRequest = { showCoinDialog = false }) {
CoinDialog(
Expand All @@ -110,14 +121,17 @@ internal fun CreateReservation(
}
}

Column {
Column(
modifier = Modifier.padding(
horizontal = 16.dp,
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

트레일링 콀마 λΆ€νƒν•©λ‹ˆλ‹€

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€

) {
Header(
title = stringResource(id = R.string.reservation_clinic),
onLeadingClicked = moveToBack,
)
Column(
modifier = Modifier.padding(
horizontal = 16.dp,
vertical = 8.dp,
)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ internal fun Reservation(
}

LaunchedEffect("$yearState-$monthState-$dayState") {
reservationViewModel.setDate("$yearState-$monthState-$dayState")
reservationViewModel.setDate("$yearState-$monthState-${dayState.padStart(2, '0')}")
reservationViewModel.fetchDayReservations()
}

Expand Down