-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] : Update market performers (#6517)
* WIP * Add peerDependency * Fix coming back to page and don't refetch everything * test(lld): update screenshots (ubuntu-latest) lld, test, screenshot * WIP * Add peerDependency * Add FF refreshTime rate for LLD * WIP change Api for MarketPerformanceWidget * Fix tests + improve Typing * Add more test * Add changeset * Clean + add more parameters to FF for config * Get cryptoasset from develop * Improve errors message * Move logic outside Fetch * Fix Trend * Revome old implem * 🧹 * fix file * fix file * fix initial display * chnage type * enrich tests * clean code * Fix typo --------- Co-authored-by: live-github-bot[bot] <105061298+live-github-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bd5188b
commit 33c4239
Showing
24 changed files
with
439 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@ledgerhq/types-live": patch | ||
"ledger-live-desktop": patch | ||
"@ledgerhq/live-common": patch | ||
--- | ||
|
||
Update MarketPerformers Endpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...desktop/src/renderer/screens/dashboard/MarketPerformanceWidget/components/MissingData.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import React from "react"; | ||
import { Order } from "../types"; | ||
import { Error } from "./Error"; | ||
import { PortfolioRange } from "@ledgerhq/types-live"; | ||
|
||
type Props = { | ||
order: Order; | ||
range: PortfolioRange; | ||
top: number; | ||
}; | ||
|
||
export function MissingData({ order }: Props) { | ||
export function MissingData({ order, top, range }: Props) { | ||
const key = order === Order.asc ? "gainers" : "losers"; | ||
const title = `dashboard.marketPerformanceWidget.missingData.${key}.title`; | ||
const description = `dashboard.marketPerformanceWidget.missingData.${key}.description`; | ||
return <Error title={title} description={description} />; | ||
return <Error title={title} description={description} top={top} range={range} />; | ||
} |
Oops, something went wrong.