From da48e54bd67b55ed515599ec1723d8edb7ca615d Mon Sep 17 00:00:00 2001 From: Hadi Lee Date: Mon, 18 Nov 2024 12:10:09 +0800 Subject: [PATCH] feat: change to logo [SF-1281] --- src/assets/img/tradingview-black-logo.svg | 12 ++++++++++++ .../molecules/HistoricalChart/HistoricalChart.tsx | 14 +++++++++++++- .../__snapshots__/HistoricalChart.test.tsx.snap | 13 ++++++++++++- .../HistoricalWidget/HistoricalWidget.tsx | 10 ---------- 4 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 src/assets/img/tradingview-black-logo.svg diff --git a/src/assets/img/tradingview-black-logo.svg b/src/assets/img/tradingview-black-logo.svg new file mode 100644 index 000000000..2768efdc4 --- /dev/null +++ b/src/assets/img/tradingview-black-logo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/components/molecules/HistoricalChart/HistoricalChart.tsx b/src/components/molecules/HistoricalChart/HistoricalChart.tsx index ef2e706eb..cd995b54e 100644 --- a/src/components/molecules/HistoricalChart/HistoricalChart.tsx +++ b/src/components/molecules/HistoricalChart/HistoricalChart.tsx @@ -10,8 +10,10 @@ import { UTCTimestamp, WhitespaceData, } from 'lightweight-charts'; +import Link from 'next/link'; import { useCallback, useEffect, useRef, useState } from 'react'; import { useSelector } from 'react-redux'; +import TradingViewLogo from 'src/assets/img/tradingview-black-logo.svg'; import { useBreakpoint, useLastPrices } from 'src/hooks'; import { selectLandingOrderForm } from 'src/store/landingOrderForm'; import { RootState } from 'src/store/types'; @@ -269,7 +271,7 @@ export function HistoricalChart({ return (
@@ -345,6 +347,16 @@ export function HistoricalChart({ data-testid='volume-chart' className='relative h-[92px] w-full laptop:h-[115px]' >
+ + + +
); } diff --git a/src/components/molecules/HistoricalChart/__snapshots__/HistoricalChart.test.tsx.snap b/src/components/molecules/HistoricalChart/__snapshots__/HistoricalChart.test.tsx.snap index d1c850c89..af84b6132 100644 --- a/src/components/molecules/HistoricalChart/__snapshots__/HistoricalChart.test.tsx.snap +++ b/src/components/molecules/HistoricalChart/__snapshots__/HistoricalChart.test.tsx.snap @@ -6,7 +6,7 @@ exports[`HistoricalChart component should match snapshot 1`] = ` class="w-[600px]" >
+ + + diff --git a/src/components/organisms/HistoricalWidget/HistoricalWidget.tsx b/src/components/organisms/HistoricalWidget/HistoricalWidget.tsx index f61de247c..88f0fd085 100644 --- a/src/components/organisms/HistoricalWidget/HistoricalWidget.tsx +++ b/src/components/organisms/HistoricalWidget/HistoricalWidget.tsx @@ -1,6 +1,5 @@ import { toBytes32 } from '@secured-finance/sf-graph-client'; import queries from '@secured-finance/sf-graph-client/dist/graphclients'; -import Link from 'next/link'; import { useMemo, useState } from 'react'; import { useSelector } from 'react-redux'; import { DropdownSelector, RadioButton } from 'src/components/atoms'; @@ -94,15 +93,6 @@ export const HistoricalWidget = () => { onChange={(time: string) => onTimeScaleChange(time)} /> - - Powered by TradingView -