File tree 2 files changed +26
-1
lines changed
feature/home/src/main/java/com/yapp
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ internal fun AlarmListItem(
153
153
},
154
154
) {
155
155
Row (
156
- modifier = modifier
156
+ modifier = Modifier
157
157
.fillMaxWidth()
158
158
.background(
159
159
if (selected) OrbitTheme .colors.gray_800 else OrbitTheme .colors.gray_900,
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ import androidx.compose.ui.platform.LocalDensity
57
57
import androidx.compose.ui.res.painterResource
58
58
import androidx.compose.ui.res.stringResource
59
59
import androidx.compose.ui.text.style.TextAlign
60
+ import androidx.compose.ui.tooling.preview.Preview
60
61
import androidx.compose.ui.unit.Dp
61
62
import androidx.compose.ui.unit.IntOffset
62
63
import androidx.compose.ui.unit.dp
@@ -907,3 +908,27 @@ private fun AlarmWithMenu(
907
908
}
908
909
}
909
910
}
911
+
912
+ @Preview(
913
+ showBackground = true ,
914
+ backgroundColor = 0xFF000000 ,
915
+ )
916
+ @Composable
917
+ fun HomeScreenPreview () {
918
+ OrbitTheme {
919
+ HomeScreen (
920
+ stateProvider = {
921
+ HomeContract .State ()
922
+ .copy(
923
+ initialLoading = false ,
924
+ alarms = listOf (
925
+ Alarm (),
926
+ ),
927
+ activeItemMenu = 0L ,
928
+ activeItemMenuPosition = Pair (0f , 0f ),
929
+ )
930
+ },
931
+ eventDispatcher = {},
932
+ )
933
+ }
934
+ }
You can’t perform that action at this time.
0 commit comments