We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac18980 commit dd35520Copy full SHA for dd35520
app/src/main/java/to/bitkit/ui/screens/wallets/activity/components/CustomTabRowWithSpacing.kt
@@ -25,11 +25,17 @@ import androidx.compose.ui.unit.dp
25
import to.bitkit.ui.components.CaptionB
26
import to.bitkit.ui.theme.Colors
27
28
+interface TabItem {
29
+ val name: String
30
+ val uiText: String
31
+ @Composable get
32
+}
33
+
34
@Composable
-fun CustomTabRowWithSpacing(
- tabs: List<ActivityTab>,
35
+fun <T : TabItem> CustomTabRowWithSpacing(
36
+ tabs: List<T>,
37
currentTabIndex: Int,
- onTabChange: (ActivityTab) -> Unit,
38
+ onTabChange: (T) -> Unit,
39
modifier: Modifier = Modifier,
40
) {
41
Column(modifier = modifier) {
0 commit comments