Skip to content

Consolidate TextValue and List Item view #1735

@gemcoder21

Description

@gemcoder21
var earnTitle: String { Localized.Common.earn }

    var earnAprText: String {
        guard let apr = assetDataModel.earnApr else { return .empty }
        return Localized.Stake.apr(CurrencyFormatter.percentSignLess.string(apr))
}

should be just

var earnTextValue: TextValue(
   title: Localized.Common.earn, 
   value: Localized.Stake.apr(CurrencyFormatter.percentSignLess.string(apr))
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions