Skip to content

Commit

Permalink
Merge branch 'preview-updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
shorthouse committed May 11, 2024
2 parents e749e34 + 12c6617 commit c830543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import dev.shorthouse.coinwatch.model.Percentage
import dev.shorthouse.coinwatch.model.Price
import dev.shorthouse.coinwatch.ui.previewdata.FavouritesPreviewData.favouriteCoins
import dev.shorthouse.coinwatch.ui.screen.favourites.FavouritesUiState
import java.math.BigDecimal
import kotlinx.collections.immutable.persistentListOf
import java.math.BigDecimal

class FavouritesUiStatePreviewProvider : PreviewParameterProvider<FavouritesUiState> {
override val values = sequenceOf(
FavouritesUiState(
favouriteCoins = favouriteCoins
favouriteCoins = favouriteCoins,
isFavouriteCoinsEmpty = false
),
FavouritesUiState(
favouriteCoins = persistentListOf()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private object CoinListPreviewData {
name = "USDC",
imageUrl = "https://cdn.coinranking.com/jkDf8sQbY/usdc.svg",
currentPrice = Price("1.00"),
priceChangePercentage24h = Percentage("0.08"),
priceChangePercentage24h = Percentage("0.00"),
),
Coin(
id = "polkadot",
Expand Down

0 comments on commit c830543

Please sign in to comment.