From 5db984ffef13118b219ad2638196f6caa68ab1af Mon Sep 17 00:00:00 2001 From: Aldrin <53973174+Dhoni77@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:51:00 +0530 Subject: [PATCH] Add date column to benchmark component (#2466) * Add date column to benchmark component --- .../lib/benchmark/benchmark.component.html | 27 +++++++++++++++---- .../src/lib/benchmark/benchmark.component.ts | 2 +- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html index e395553ec..33cf72389 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.html +++ b/libs/ui/src/lib/benchmark/benchmark.component.html @@ -6,14 +6,33 @@ + + + Last All Time High + + +
+ +
+ +
+ - + Change from All Time High from ATH - + 0 }" - [value]=" - element?.performances?.allTimeHigh?.performancePercent ?? undefined - " + [value]="element?.performances?.allTimeHigh?.performancePercent" > diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts index a5c117c24..b9f1dd25b 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -18,7 +18,7 @@ export class BenchmarkComponent implements OnChanges { @Input() benchmarks: Benchmark[]; @Input() locale: string; - public displayedColumns = ['name', 'change', 'marketCondition']; + public displayedColumns = ['name', 'date', 'change', 'marketCondition']; public resolveMarketCondition = resolveMarketCondition; public constructor() {}