Skip to content

Commit bde7c8c

Browse files
committed
chore(fc): add empy state to labs
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent cba681c commit bde7c8c

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

flipchatApp/src/main/kotlin/xyz/flipchat/app/features/beta/BetaFlagsScreen.kt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package xyz.flipchat.app.features.beta
22

33
import android.os.Parcelable
4+
import androidx.compose.foundation.layout.Box
45
import androidx.compose.foundation.layout.Column
56
import androidx.compose.foundation.layout.fillMaxSize
67
import androidx.compose.foundation.lazy.LazyColumn
78
import androidx.compose.foundation.lazy.items
9+
import androidx.compose.material.Text
810
import androidx.compose.runtime.Composable
911
import androidx.compose.runtime.collectAsState
1012
import androidx.compose.runtime.getValue
@@ -15,6 +17,7 @@ import cafe.adriel.voyager.core.screen.Screen
1517
import cafe.adriel.voyager.core.screen.ScreenKey
1618
import cafe.adriel.voyager.core.screen.uniqueScreenKey
1719
import com.getcode.navigation.core.LocalCodeNavigator
20+
import com.getcode.theme.CodeTheme
1821
import com.getcode.ui.components.AppBarWithTitle
1922
import com.getcode.ui.components.SettingsSwitchRow
2023
import kotlinx.parcelize.IgnoredOnParcel
@@ -64,6 +67,33 @@ private fun BetaFlagsScreenContent() {
6467
betaFlagsController.set(feature.flag, !feature.enabled)
6568
}
6669
}
70+
if (betaFlags.isEmpty()) {
71+
item {
72+
Box(modifier = Modifier.fillParentMaxSize()) {
73+
Column(
74+
modifier = Modifier.align(Alignment.Center),
75+
horizontalAlignment = Alignment.CenterHorizontally
76+
) {
77+
Text(
78+
text = "\uD83D\uDE2D",
79+
style = CodeTheme.typography.displayMedium
80+
)
81+
Text(
82+
text = "Nothing Cooking in the Lab Right Now",
83+
style = CodeTheme.typography.textLarge,
84+
color = CodeTheme.colors.textMain
85+
)
86+
87+
Text(
88+
text = "Check back in the next app update.",
89+
style = CodeTheme.typography.textSmall,
90+
color = CodeTheme.colors.textSecondary
91+
)
92+
93+
}
94+
}
95+
}
96+
}
6797
}
6898
}
6999

0 commit comments

Comments
 (0)