Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ internal fun CurrencyInfoContentV2(
onPeriodSelected = {
dispatch(TokenInfoViewModel.Event.OnMarketCapPeriodSelected(it))
},
onHeaderClick = openExplainer,
)
}
item {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.PaddingValues
Expand Down Expand Up @@ -80,7 +79,6 @@ internal fun MarketCapSection(
animateChartOpen: Boolean = true,
onRetry: () -> Unit,
onPeriodSelected: (Period) -> Unit,
onHeaderClick: (() -> Unit)? = null,
) {
var highlightedCapPoint by remember {
mutableStateOf<MarketCapPoint?>(null)
Expand Down Expand Up @@ -133,17 +131,6 @@ internal fun MarketCapSection(
Column(
modifier = modifier,
) {
// Only the label, value and change pill open the explainer; the chart and range chips keep
// their own gestures.
Column(
modifier = Modifier.then(
if (onHeaderClick != null) {
Modifier.clickable(onClick = onHeaderClick)
} else {
Modifier
}
),
) {
Row(
modifier = Modifier.padding(start = contentPadding.calculateStartPadding()),
verticalAlignment = Alignment.CenterVertically,
Expand Down Expand Up @@ -204,8 +191,6 @@ internal fun MarketCapSection(
}
}

}

MarketCapChart(
modifier = Modifier
.fillMaxWidth()
Expand Down
Loading