Browse Source

Consolidate markets pages

pull/7471/head
Thomas Kaul 1 month ago
parent
commit
b4e29bb9a4
  1. 22
      apps/client/src/app/pages/api/api-page.html

22
apps/client/src/app/pages/api/api-page.html

@ -179,16 +179,12 @@
<mat-card-content class="pt-3"> <mat-card-content class="pt-3">
@if (isFetchFailure(marketDataOfMarkets)) { @if (isFetchFailure(marketDataOfMarkets)) {
🔴 {{ marketDataOfMarkets.fetchError }} 🔴 {{ marketDataOfMarkets.fetchError }}
} @else if (marketDataOfMarkets) { } @else {
<gf-fear-and-greed-index <gf-fear-and-greed-index
[fearAndGreedIndex]=" [fearAndGreedIndex]="
marketDataOfMarkets.fearAndGreedIndex.STOCKS.marketPrice marketDataOfMarkets?.fearAndGreedIndex?.STOCKS?.marketPrice
" "
/> [isLoading]="!marketDataOfMarkets"
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '2.5rem', width: '100%' }"
/> />
} }
</mat-card-content> </mat-card-content>
@ -203,17 +199,13 @@
<mat-card-content class="pt-3"> <mat-card-content class="pt-3">
@if (isFetchFailure(marketDataOfMarkets)) { @if (isFetchFailure(marketDataOfMarkets)) {
🔴 {{ marketDataOfMarkets.fetchError }} 🔴 {{ marketDataOfMarkets.fetchError }}
} @else if (marketDataOfMarkets) { } @else {
<gf-fear-and-greed-index <gf-fear-and-greed-index
[fearAndGreedIndex]=" [fearAndGreedIndex]="
marketDataOfMarkets.fearAndGreedIndex.CRYPTOCURRENCIES marketDataOfMarkets?.fearAndGreedIndex?.CRYPTOCURRENCIES
.marketPrice ?.marketPrice
" "
/> [isLoading]="!marketDataOfMarkets"
} @else {
<ngx-skeleton-loader
animation="pulse"
[theme]="{ height: '2.5rem', width: '100%' }"
/> />
} }
</mat-card-content> </mat-card-content>

Loading…
Cancel
Save