@@ -2,7 +2,6 @@ package dev.shorthouse.coinwatch.ui.screen.details.component
2
2
3
3
import androidx.compose.material.icons.Icons
4
4
import androidx.compose.material.icons.rounded.ArrowBack
5
- import androidx.compose.material.icons.rounded.StarOutline
6
5
import androidx.compose.material3.ExperimentalMaterial3Api
7
6
import androidx.compose.material3.Icon
8
7
import androidx.compose.material3.IconButton
@@ -20,7 +19,6 @@ import dev.shorthouse.coinwatch.ui.theme.AppTheme
20
19
@Composable
21
20
fun DetailsEmptyTopBar (
22
21
onNavigateUp : () -> Unit ,
23
- showFavouriteAction : Boolean ,
24
22
modifier : Modifier = Modifier
25
23
) {
26
24
LargeTopAppBar (
@@ -33,17 +31,6 @@ fun DetailsEmptyTopBar(
33
31
}
34
32
},
35
33
title = {},
36
- actions = {
37
- if (showFavouriteAction) {
38
- IconButton (onClick = {}) {
39
- Icon (
40
- imageVector = Icons .Rounded .StarOutline ,
41
- contentDescription = stringResource(R .string.cd_top_bar_favourite),
42
- tint = MaterialTheme .colorScheme.onBackground
43
- )
44
- }
45
- }
46
- },
47
34
colors = TopAppBarDefaults .largeTopAppBarColors(
48
35
containerColor = MaterialTheme .colorScheme.background
49
36
),
@@ -57,7 +44,6 @@ private fun DetailsEmptyTopBar() {
57
44
AppTheme {
58
45
DetailsEmptyTopBar (
59
46
onNavigateUp = {},
60
- showFavouriteAction = true
61
47
)
62
48
}
63
49
}
0 commit comments