Updated on 2026-08-14
This commit is contained in:
parent
090e0964d4
commit
a9fbfc8a53
7 changed files with 272 additions and 107 deletions
|
|
@ -55,6 +55,12 @@ sealed interface TokensListItemUM {
|
|||
is PortfolioItemContentUM.Tokens -> content.tokens
|
||||
is PortfolioItemContentUM.Empty -> persistentListOf()
|
||||
}
|
||||
|
||||
val tokensItemsList: List<Token>
|
||||
get() = when (content) {
|
||||
is PortfolioItemContentUM.Tokens -> content.tokens.filterIsInstance<Token>()
|
||||
is PortfolioItemContentUM.Empty -> emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
data class Text(override val id: Any, val text: TextReference) : TokensListItemUM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue