Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Refactor TransactionCard.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed May 29, 2022
1 parent 999f498 commit aa8159b
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyItemScope
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -43,7 +42,7 @@ import java.time.LocalDateTime


@Composable
fun LazyItemScope.TransactionCard(
fun TransactionCard(
baseData: AppBaseData,

transaction: Transaction,
Expand All @@ -53,8 +52,6 @@ fun LazyItemScope.TransactionCard(

onClick: (Transaction) -> Unit,
) {
val isLightTheme = UI.colors.pure == White

Spacer(Modifier.height(12.dp))

Column(
Expand Down Expand Up @@ -177,12 +174,9 @@ fun LazyItemScope.TransactionCard(
.padding(start = 24.dp),
text = stringResource(R.string.skip),
wrapContentMode = false,
backgroundGradient = if (isLightTheme) Gradient(White, White) else Gradient(
Black,
Black
),
backgroundGradient = Gradient.solid(UI.colors.pure),
textStyle = UI.typo.b2.style(
color = if (isLightTheme) Black else White,
color = UI.colors.pure,
fontWeight = FontWeight.Bold
)
) {
Expand Down

0 comments on commit aa8159b

Please sign in to comment.