Skip to content

Commit 85f1925

Browse files
committed
feat(PermissionsScreen): add preview
1 parent a8a006c commit 85f1925

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.aliucord.manager.ui.previews.screens
2+
3+
import android.content.res.Configuration
4+
import androidx.compose.runtime.Composable
5+
import androidx.compose.ui.tooling.preview.Preview
6+
import com.aliucord.manager.ui.screens.permissions.PermissionsScreenContent
7+
import com.aliucord.manager.ui.theme.ManagerTheme
8+
9+
@Composable
10+
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES)
11+
@Preview(uiMode = Configuration.UI_MODE_NIGHT_NO)
12+
fun PermissionsScreenPreview() {
13+
ManagerTheme {
14+
PermissionsScreenContent(
15+
storagePermsGranted = true,
16+
onGrantStoragePerms = {},
17+
installPermsGranted = true,
18+
onGrantInstallPerms = {},
19+
notificationsPermsGranted = false,
20+
onGrantNotificationsPerms = {},
21+
batteryPermsGranted = false,
22+
onGrantBatteryPerms = {},
23+
canContinue = true,
24+
onContinue = {},
25+
)
26+
}
27+
}

0 commit comments

Comments
 (0)