Skip to content

Instantly share code, notes, and snippets.

@zurche
Created July 27, 2023 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zurche/1fe5c1219dece76c2084be040f356447 to your computer and use it in GitHub Desktop.
Save zurche/1fe5c1219dece76c2084be040f356447 to your computer and use it in GitHub Desktop.
data class MyCryptoCapUIData(
val value: Float,
val currency: String,
val monthlyPreview: List<Pair<String, Float>> //<---- NEW
)
private val mockData =
MyCryptoCapUIData(
38546.82f,
"USD",
listOf( //<---- NEW
Pair("Jan", 15000f),
Pair("Feb", 20000f),
Pair("Mar", 38000f),
Pair("Apr", 8000f),
Pair("May", 10000f)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment