Skip to content

Commit

Permalink
fix: fw-2832 color of price chart
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Nov 25, 2024
1 parent 47a40a2 commit 5aff1ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@
--color-light-main: #181818;
--color-bottom-bg: rgba(0, 0, 0, 0.05);
--color-tab-line: rgba(29, 155, 240, 1);
--color-success: rgb(13, 48, 11);
--color-firefly-brand: rgba(146, 80, 255, 1);
--m-common-danger: #ff3545;
--m-common-warn: 255 177 0;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePriceLineChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function usePriceLineChart(
) {
const startValue = first(data)?.value ?? 0;
const endValue = last(data)?.value ?? 0;
const defaultColor = endValue > startValue ? 'var(--color-success)' : 'rgb(var(--color-fail))';
const defaultColor = endValue > startValue ? 'rgb(var(--color-success))' : 'rgb(var(--color-fail))';

const { color = defaultColor, sign = CurrencyType.USD } = opts;

Expand Down

0 comments on commit 5aff1ff

Please sign in to comment.