Skip to content

Commit

Permalink
[bugfix] Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmd-android committed Oct 4, 2023
1 parent c8d0dc4 commit 1733c41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private fun MarketListScreen(
if (marketListState.showFavoriteEmptyState && marketListState.showFavoriteList) {
EmptyStateAnimation(
lottieCompositionSpec = LottieCompositionSpec.RawRes(
R.raw.empty_state_animation
R.raw.empty_state_animation,
),
)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MarketListViewModel @Inject constructor(
prevState.copy(
marketList = result.map { it.toMarketModel() }.toPersistentList(),
refreshing = false,
showFavoriteEmptyState = result.isEmpty()
showFavoriteEmptyState = result.isEmpty(),
)
}
mutableBaseState.update { BaseContract.BaseState.OnSuccess }
Expand All @@ -107,7 +107,7 @@ class MarketListViewModel @Inject constructor(
prevState.copy(
marketList = newList.map { it.toMarketModel() }.toPersistentList(),
refreshing = false,
showFavoriteEmptyState = newList.isEmpty()
showFavoriteEmptyState = newList.isEmpty(),
)
}
}.launchIn(viewModelScope)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ fun LottieAnimationComposable(
composition = composition,
iterations = repeatCount,
speed = speed,
reverseOnRepeat = autoPlay
reverseOnRepeat = autoPlay,
)

LottieAnimation(
composition = composition, progress = { progress },
composition = composition,
progress = { progress },
modifier = modifier,
contentScale = contentScale
contentScale = contentScale,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.scale
import androidx.compose.ui.graphics.Color.Companion.Green
import androidx.compose.ui.graphics.Color.Companion.Red
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import coil.compose.rememberAsyncImagePainter
import com.airbnb.lottie.compose.LottieCompositionSpec
import ir.composenews.designsystem.R
import ir.composenews.designsystem.preview.ThemePreviews
import ir.composenews.designsystem.theme.ComposeNewsTheme
Expand Down

0 comments on commit 1733c41

Please sign in to comment.