Rename Onboarding to Welcome
This commit is contained in:
parent
83e1caaf59
commit
2c4fa22198
3 changed files with 18 additions and 15 deletions
|
@ -12,7 +12,7 @@ import androidx.navigation.compose.rememberNavController
|
|||
import app.k9mail.feature.account.setup.navigation.AccountSetupNavHost
|
||||
import app.k9mail.feature.onboarding.permissions.domain.PermissionsDomainContract.UseCase.HasRuntimePermissions
|
||||
import app.k9mail.feature.onboarding.permissions.ui.PermissionsScreen
|
||||
import app.k9mail.feature.onboarding.welcome.ui.OnboardingScreen
|
||||
import app.k9mail.feature.onboarding.welcome.ui.WelcomeScreen
|
||||
import org.koin.compose.koinInject
|
||||
|
||||
private const val NESTED_NAVIGATION_ROUTE_WELCOME = "welcome"
|
||||
|
@ -41,7 +41,7 @@ fun OnboardingNavHost(
|
|||
startDestination = NESTED_NAVIGATION_ROUTE_WELCOME,
|
||||
) {
|
||||
composable(route = NESTED_NAVIGATION_ROUTE_WELCOME) {
|
||||
OnboardingScreen(
|
||||
WelcomeScreen(
|
||||
onStartClick = { navController.navigateToAccountSetup() },
|
||||
onImportClick = onImport,
|
||||
)
|
||||
|
|
|
@ -26,7 +26,7 @@ import app.k9mail.core.ui.compose.theme.ThunderbirdTheme
|
|||
import app.k9mail.feature.onboarding.welcome.R
|
||||
|
||||
@Composable
|
||||
internal fun OnboardingContent(
|
||||
internal fun WelcomeContent(
|
||||
onStartClick: () -> Unit,
|
||||
onImportClick: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
|
@ -144,9 +144,9 @@ private fun Modifier.defaultItemModifier() = composed {
|
|||
|
||||
@Composable
|
||||
@PreviewDevices
|
||||
internal fun OnboardingContentK9Preview() {
|
||||
internal fun WelcomeContentK9Preview() {
|
||||
K9Theme {
|
||||
OnboardingContent(
|
||||
WelcomeContent(
|
||||
onStartClick = {},
|
||||
onImportClick = {},
|
||||
)
|
||||
|
@ -155,9 +155,9 @@ internal fun OnboardingContentK9Preview() {
|
|||
|
||||
@Composable
|
||||
@PreviewDevices
|
||||
internal fun OnboardingContentThunderbirdPreview() {
|
||||
internal fun WelcomeContentThunderbirdPreview() {
|
||||
ThunderbirdTheme {
|
||||
OnboardingContent(
|
||||
WelcomeContent(
|
||||
onStartClick = {},
|
||||
onImportClick = {},
|
||||
)
|
|
@ -2,23 +2,26 @@ package app.k9mail.feature.onboarding.welcome.ui
|
|||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import app.k9mail.core.ui.compose.theme.ThunderbirdTheme
|
||||
|
||||
@Composable
|
||||
fun OnboardingScreen(
|
||||
fun WelcomeScreen(
|
||||
onStartClick: () -> Unit,
|
||||
onImportClick: () -> Unit,
|
||||
) {
|
||||
OnboardingContent(
|
||||
WelcomeContent(
|
||||
onStartClick = onStartClick,
|
||||
onImportClick = onImportClick,
|
||||
)
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
internal fun OnboardingScreenPreview() {
|
||||
OnboardingScreen(
|
||||
onStartClick = {},
|
||||
onImportClick = {},
|
||||
)
|
||||
@Preview
|
||||
internal fun WelcomeScreenThunderbirdPreview() {
|
||||
ThunderbirdTheme {
|
||||
WelcomeScreen(
|
||||
onStartClick = {},
|
||||
onImportClick = {},
|
||||
)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue