Skip to content

Commit

Permalink
Merge pull request #1027 from radixdlt/home_cards_carousel
Browse files Browse the repository at this point in the history
Implement HomeCardsCarousel
  • Loading branch information
micbakos-rdx committed Jul 3, 2024
2 parents 4eb961f + b406a16 commit d350d0c
Show file tree
Hide file tree
Showing 8 changed files with 477 additions and 2 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import rdx.works.core.domain.resources.sampleMainnet
import rdx.works.core.toEncodedString
import kotlin.math.absoluteValue

@Suppress("TooManyFunctions")
object Thumbnail {

@Composable
Expand Down Expand Up @@ -262,13 +263,28 @@ object Thumbnail {
modifier: Modifier = Modifier,
dapp: DApp?,
shape: Shape = RadixTheme.shapes.roundedRectDefault
) {
DApp(
modifier = modifier,
dAppIconUrl = dapp?.iconUrl,
dAppName = dapp?.name.orEmpty(),
shape = shape
)
}

@Composable
fun DApp(
modifier: Modifier = Modifier,
dAppIconUrl: Uri?,
dAppName: String,
shape: Shape = RadixTheme.shapes.roundedRectDefault
) {
Custom(
modifier = modifier,
imageType = dapp?.iconUrl?.let { ImageType.External(it, ThumbnailRequestSize.MEDIUM) },
imageType = dAppIconUrl?.let { ImageType.External(it, ThumbnailRequestSize.MEDIUM) },
emptyDrawable = R.drawable.ic_dapp,
shape = shape,
contentDescription = dapp?.name.orEmpty()
contentDescription = dAppName
)
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d350d0c

Please sign in to comment.