Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Aug 19, 2024
1 parent d44352b commit 82f0444
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ public class dydxVaultPositionViewModel: PlatformViewModel {
@Published public var sparklineValues: [Double]

fileprivate var sideLeverageAttributedText: AttributedString {
let attributedSideText = AttributedString(text: side.text, urlString: nil).themeColor(foreground: side.color)
let attributedSideText = AttributedString(text: side.text, urlString: nil)
.themeColor(foreground: side.color)
let leverageText = dydxFormatter.shared.leverage(number: leverage) ?? "--"
let attributedLeverageText = AttributedString(text: "@ " + leverageText, urlString: nil).themeColor(foreground: .textTertiary)
return attributedSideText + attributedLeverageText
let attributedLeverageText = AttributedString(text: "@ " + leverageText, urlString: nil)
.themeColor(foreground: .textTertiary)
return (attributedSideText + attributedLeverageText)
.themeFont(fontType: .base, fontSize: .smaller)
}

fileprivate var notionalValueText: String {
Expand Down

0 comments on commit 82f0444

Please sign in to comment.