File tree Expand file tree Collapse file tree
feature/home/src/main/kotlin/com/ninecraft/booket/feature/home Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,11 @@ internal fun HomeContent(
9393 state : HomeUiState ,
9494 modifier : Modifier = Modifier ,
9595) {
96- Box {
96+ Box (
97+ modifier = Modifier
98+ .fillMaxSize()
99+ .background(ReedTheme .colors.baseSecondary),
100+ ) {
97101 when (state.uiState) {
98102 is UiState .Idle -> {}
99103 is UiState .Loading -> {
@@ -106,11 +110,7 @@ internal fun HomeContent(
106110 }
107111
108112 is UiState .Success -> {
109- Column (
110- modifier = modifier
111- .fillMaxSize()
112- .background(ReedTheme .colors.baseSecondary),
113- ) {
113+ Column (modifier = modifier.fillMaxSize()) {
114114 Spacer (modifier = Modifier .height(ReedTheme .spacing.spacing6))
115115 Text (
116116 text = stringResource(R .string.home_content_label_reading_now),
@@ -152,7 +152,8 @@ internal fun HomeContent(
152152 horizontalArrangement = Arrangement .Center ,
153153 ) {
154154 repeat(pagerState.pageCount) { iteration ->
155- val color = if (pagerState.currentPage == iteration) ReedTheme .colors.bgPrimary else ReedTheme .colors.bgSecondaryPressed
155+ val color =
156+ if (pagerState.currentPage == iteration) ReedTheme .colors.bgPrimary else ReedTheme .colors.bgSecondaryPressed
156157 Box (
157158 modifier = Modifier
158159 .size(12 .dp)
@@ -165,6 +166,7 @@ internal fun HomeContent(
165166 }
166167 }
167168 }
169+
168170 is UiState .Error -> {
169171 Box (
170172 modifier = Modifier .fillMaxSize(),
You can’t perform that action at this time.
0 commit comments