Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c30959d authored by shamim-emon's avatar shamim-emon
Browse files

Exposed ShowAccountSelector through config argument in DrawerContent in...

Exposed ShowAccountSelector through config  argument in DrawerContent  in DrawerContentPreview where applicable.
parent 431730ed
Loading
Loading
Loading
Loading
+36 −7
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import app.k9mail.core.ui.compose.designsystem.PreviewWithTheme
import app.k9mail.core.ui.compose.designsystem.atom.Surface
import app.k9mail.feature.navigation.drawer.NavigationDrawerExternalContract.DrawerConfig
import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT
import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_FOLDER
import app.k9mail.feature.navigation.drawer.ui.FakeData.UNIFIED_FOLDER
@@ -121,8 +122,12 @@ internal fun DrawerContentSingleAccountPreview() {
                selectedAccountId = DISPLAY_ACCOUNT.id,
                folders = displayFolders,
                selectedFolderId = displayFolders[0].id,
                config = DrawerConfig(
                    showUnifiedFolders = false,
                    showStarredCount = false,
                    showAccountSelector = false,
                ),
            ),
            onEvent = {},
        )
    }
@@ -142,8 +147,12 @@ internal fun DrawerContentSingleAccountWithAccountSelectionPreview() {
                selectedAccountId = DISPLAY_ACCOUNT.id,
                folders = displayFolders,
                selectedFolderId = displayFolders[0].id,
                config = DrawerConfig(
                    showUnifiedFolders = false,
                    showStarredCount = false,
                    showAccountSelector = true,
                ),
            ),
            onEvent = {},
        )
    }
@@ -162,8 +171,12 @@ internal fun DrawerContentMultipleAccountsAccountPreview() {
                selectedAccountId = accountList[0].id,
                folders = displayFolders,
                selectedFolderId = UNIFIED_FOLDER.id,
                config = DrawerConfig(
                    showUnifiedFolders = false,
                    showStarredCount = false,
                    showAccountSelector = false,
                ),
            ),
            onEvent = {},
        )
    }
@@ -181,8 +194,12 @@ internal fun DrawerContentMultipleAccountsWithAccountSelectionPreview() {
                selectedAccountId = accountList[1].id,
                folders = createDisplayFolderList(hasUnifiedFolder = true),
                selectedFolderId = UNIFIED_FOLDER.id,
                config = DrawerConfig(
                    showUnifiedFolders = false,
                    showStarredCount = false,
                    showAccountSelector = true,
                ),
            ),
            onEvent = {},
        )
    }
@@ -200,8 +217,12 @@ internal fun DrawerContentMultipleAccountsWithDifferentAccountSelectionPreview()
                selectedAccountId = accountList[2].id,
                folders = createDisplayFolderList(hasUnifiedFolder = true),
                selectedFolderId = UNIFIED_FOLDER.id,
                config = DrawerConfig(
                    showUnifiedFolders = false,
                    showStarredCount = false,
                    showAccountSelector = true,
                ),
            ),
            onEvent = {},
        )
    }
@@ -224,8 +245,12 @@ internal fun DrawerContentSmallScreenPreview() {
                    selectedAccountId = accountList[2].id,
                    folders = createDisplayFolderList(hasUnifiedFolder = true),
                    selectedFolderId = UNIFIED_FOLDER.id,
                    config = DrawerConfig(
                        showUnifiedFolders = false,
                        showStarredCount = false,
                        showAccountSelector = true,
                    ),
                ),
                onEvent = {},
            )
        }
@@ -249,8 +274,12 @@ internal fun DrawerContentVerySmallScreenPreview() {
                    selectedAccountId = accountList[2].id,
                    folders = createDisplayFolderList(hasUnifiedFolder = true),
                    selectedFolderId = UNIFIED_FOLDER.id,
                    config = DrawerConfig(
                        showUnifiedFolders = false,
                        showStarredCount = false,
                        showAccountSelector = true,
                    ),
                ),
                onEvent = {},
            )
        }