From c386249d5990fe2aaed5f3974c322554585c5100 Mon Sep 17 00:00:00 2001
From: jia-deriv <142988136+jia-deriv@users.noreply.github.com>
Date: Wed, 11 Oct 2023 14:13:24 +0800
Subject: [PATCH] chore: remove images duplicate (#5747)
* chore: remove images duplicate
* fix: 2007 cryptocurrency image doesnt look the same
---
src/components/elements/symbols-shortcode.ts | 2 --
src/components/elements/symbols.ts | 10 ----------
.../components/molecules/other-markets-slider/data.ts | 2 +-
.../deriv-prime/available-instruments/_data.tsx | 2 +-
src/images/svg/markets/cryptocurrencies-new.svg | 2 +-
src/images/svg/markets/forex_markets.svg | 4 ----
src/images/svg/symbols/cl-brent.svg | 1 -
src/images/svg/symbols/european-indices/uk-100.svg | 1 -
.../european-indices/uk-100.svg | 1 -
src/images/svg/symbols/oil-usd.svg | 1 -
src/images/svg/symbols/volatility-index-ic-200.svg | 1 -
src/images/svg/trading-specification/deriv-ez.svg | 7 -------
src/images/svg/trading-specification/deriv-mt5.svg | 8 --------
.../markets/components/helper/_available-platforms.tsx | 2 +-
.../markets/components/sections/_other-markets.tsx | 2 +-
src/pages/markets/instruments/_market-symbols.tsx | 4 ++--
src/pages/markets/static/content/_market-symbols.tsx | 4 ++--
src/pages/trade-types/cfds/_available-markets.tsx | 2 +-
src/pages/trader-tools/common/_underlying-data.tsx | 8 ++++----
.../components/_available-platform.tsx | 4 ++--
.../data/_stocks_specification.ts | 4 ++--
21 files changed, 18 insertions(+), 54 deletions(-)
delete mode 100644 src/images/svg/markets/forex_markets.svg
delete mode 100644 src/images/svg/symbols/cl-brent.svg
delete mode 100644 src/images/svg/symbols/european-indices/uk-100.svg
delete mode 100644 src/images/svg/symbols/markets-stocks-and-indices/european-indices/uk-100.svg
delete mode 100644 src/images/svg/symbols/oil-usd.svg
delete mode 100644 src/images/svg/symbols/volatility-index-ic-200.svg
delete mode 100644 src/images/svg/trading-specification/deriv-ez.svg
delete mode 100644 src/images/svg/trading-specification/deriv-mt5.svg
diff --git a/src/components/elements/symbols-shortcode.ts b/src/components/elements/symbols-shortcode.ts
index d8575a10fec..93b7fe597dc 100644
--- a/src/components/elements/symbols-shortcode.ts
+++ b/src/components/elements/symbols-shortcode.ts
@@ -102,7 +102,6 @@ import OTC_IBEX35 from 'images/svg/symbols/markets-stocks-and-indices/european-i
import OTC_SX5E from 'images/svg/symbols/markets-stocks-and-indices/european-indices/europe-50.svg'
import OTC_FCHI from 'images/svg/symbols/markets-stocks-and-indices/european-indices/france-40.svg'
import OTC_N225 from 'images/svg/symbols/markets-stocks-and-indices/asian-indices/japan-225.svg'
-import OTC_FTSE from 'images/svg/symbols/markets-stocks-and-indices/european-indices/uk-100.svg'
import OTC_NDX from 'images/svg/symbols/markets-stocks-and-indices/american-indices/us-tech-100.svg'
import OTC_DJI from 'images/svg/symbols/markets-stocks-and-indices/american-indices/wall-street-30.svg'
import OTC_SPC from 'images/svg/symbols/markets-stocks-and-indices/american-indices/us-500.svg'
@@ -284,7 +283,6 @@ export {
OTC_SX5E,
OTC_FCHI,
OTC_N225,
- OTC_FTSE,
OTC_NDX,
OTC_DJI,
OTC_SPC,
diff --git a/src/components/elements/symbols.ts b/src/components/elements/symbols.ts
index 48496d9db1c..72cbef8c055 100644
--- a/src/components/elements/symbols.ts
+++ b/src/components/elements/symbols.ts
@@ -45,7 +45,6 @@ import CADJPY from 'images/svg/symbols/cad-jpy.svg'
import CARDANO from 'images/svg/symbols/cardano.svg'
import CHAINLINK from 'images/svg/symbols/chainlink.svg'
import CHFJPY from 'images/svg/symbols/chf-jpy.svg'
-import CLBRENT from 'images/svg/symbols/cl-brent.svg'
import COPPERUSD from 'images/svg/symbols/copper-usd.svg'
import CRASH1000 from 'images/svg/symbols/crash-indices-1000.svg'
import CRASH1000NEW from 'images/svg/symbols/crash-indices-1000-new.svg'
@@ -178,7 +177,6 @@ import NZDCHF from 'images/svg/symbols/nzd-chf.svg'
import NZDJPY from 'images/svg/symbols/nzd-jpy.svg'
import NZDSGD from 'images/svg/symbols/nzd-sgd.svg'
import NZDUSD from 'images/svg/symbols/nzd-usd.svg'
-import OILUSD from 'images/svg/symbols/oil-usd.svg'
import OMGUSD from 'images/svg/symbols/omg-usd.svg'
import OTCAUSTRALIAN from 'images/svg/symbols/otcaustralian.svg'
import OTCDUTCH from 'images/svg/symbols/otcdutch.svg'
@@ -266,7 +264,6 @@ import STOCKSGERMANY30 from 'images/svg/symbols/markets-stocks-and-indices/europ
import STOCKSGERMANY40 from 'images/svg/symbols/markets-stocks-and-indices/european-indices/germany-40.svg'
import STOCKSNETHERLANDS25 from 'images/svg/symbols/markets-stocks-and-indices/european-indices/netherlands-25.svg'
import STOCKSSPAIN35 from 'images/svg/symbols/markets-stocks-and-indices/european-indices/spain-35.svg'
-import STOCKSUK100 from 'images/svg/symbols/markets-stocks-and-indices/european-indices/uk-100.svg'
import STOCKSSWISS20 from 'images/svg/symbols/markets-stocks-and-indices/european-indices/swiss-20.svg'
import STOCKSADIDASSALOMON from 'images/svg/symbols/markets-stocks-and-indices/american-stocks/stocks-adidas-salomon.svg'
import STOCKSADVANCEDMICRODEVICES from 'images/svg/symbols/markets-stocks-and-indices/american-stocks/stocks-amd.svg'
@@ -350,8 +347,6 @@ import MNR from 'images/svg/symbols/monero_flag.svg'
import OMICEGO from 'images/svg/symbols/omise-go.svg'
import VBOOMIC300 from 'images/svg/symbols/volatility-boom-300-new.svg'
import VCRASHIC300 from 'images/svg/symbols/volatility-crash-300-new.svg'
-import VINDEXIC200 from 'images/svg/symbols/volatility-index-ic-200.svg'
-import VINDEXIC300 from 'images/svg/symbols/volatility-index-ic-300.svg'
import VINDEX2001S from 'images/svg/symbols/volatility_200_1s.svg'
import VINDEX3001S from 'images/svg/symbols/volatility_300_1s.svg'
import VINDEX1501S from 'images/svg/symbols/volatility_150_1s.svg'
@@ -414,7 +409,6 @@ export {
CADJPY,
CHAINLINK,
CHFJPY,
- CLBRENT,
COPPERUSD,
CRASH1000,
CRASH1000NEW,
@@ -548,7 +542,6 @@ export {
NZDJPY,
NZDSGD,
NZDUSD,
- OILUSD,
OMGUSD,
OMICEGO,
OTCAUSTRALIAN,
@@ -635,7 +628,6 @@ export {
STOCKSGERMANY40,
STOCKSNETHERLANDS25,
STOCKSSPAIN35,
- STOCKSUK100,
STOCKSADIDASSALOMON,
STOCKSAIRBNB,
STOCKSALIBABAGROUP,
@@ -717,8 +709,6 @@ export {
MNR,
VBOOMIC300,
VCRASHIC300,
- VINDEXIC200,
- VINDEXIC300,
VINDEX2001S,
VINDEX1501S,
VINDEX2501S,
diff --git a/src/features/components/molecules/other-markets-slider/data.ts b/src/features/components/molecules/other-markets-slider/data.ts
index 163c7d9c649..5e33205ce86 100644
--- a/src/features/components/molecules/other-markets-slider/data.ts
+++ b/src/features/components/molecules/other-markets-slider/data.ts
@@ -1,5 +1,5 @@
import { CardType } from 'features/components/atoms/card/type'
-import Forex from 'images/svg/markets/forex_markets.svg'
+import Forex from 'images/svg/trade-types/forex.svg'
import Derived from 'images/svg/markets/derived_markets.svg'
import Stocks from 'images/svg/markets/stocks_markets.svg'
import CryptoCurrencies from 'images/svg/markets/crypto_markets.svg'
diff --git a/src/features/pages/partners/deriv-prime/available-instruments/_data.tsx b/src/features/pages/partners/deriv-prime/available-instruments/_data.tsx
index 6e3e1081523..2db7246b650 100644
--- a/src/features/pages/partners/deriv-prime/available-instruments/_data.tsx
+++ b/src/features/pages/partners/deriv-prime/available-instruments/_data.tsx
@@ -1,4 +1,4 @@
-import Forex from 'images/svg/markets/forex_markets.svg'
+import Forex from 'images/svg/trade-types/forex.svg'
import Stocks from 'images/svg/markets/stocks_markets.svg'
import CryptoCurrencies from 'images/svg/markets/crypto_markets.svg'
import Commodities from 'images/svg/markets/commodities_markets.svg'
diff --git a/src/images/svg/markets/cryptocurrencies-new.svg b/src/images/svg/markets/cryptocurrencies-new.svg
index a36a94453a8..b105171e877 100644
--- a/src/images/svg/markets/cryptocurrencies-new.svg
+++ b/src/images/svg/markets/cryptocurrencies-new.svg
@@ -8,4 +8,4 @@
-
+
\ No newline at end of file
diff --git a/src/images/svg/markets/forex_markets.svg b/src/images/svg/markets/forex_markets.svg
deleted file mode 100644
index ecfc11a5670..00000000000
--- a/src/images/svg/markets/forex_markets.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/src/images/svg/symbols/cl-brent.svg b/src/images/svg/symbols/cl-brent.svg
deleted file mode 100644
index f6a096df207..00000000000
--- a/src/images/svg/symbols/cl-brent.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/images/svg/symbols/european-indices/uk-100.svg b/src/images/svg/symbols/european-indices/uk-100.svg
deleted file mode 100644
index 6a6ca4f4eb9..00000000000
--- a/src/images/svg/symbols/european-indices/uk-100.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/images/svg/symbols/markets-stocks-and-indices/european-indices/uk-100.svg b/src/images/svg/symbols/markets-stocks-and-indices/european-indices/uk-100.svg
deleted file mode 100644
index 6a6ca4f4eb9..00000000000
--- a/src/images/svg/symbols/markets-stocks-and-indices/european-indices/uk-100.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/images/svg/symbols/oil-usd.svg b/src/images/svg/symbols/oil-usd.svg
deleted file mode 100644
index f6a096df207..00000000000
--- a/src/images/svg/symbols/oil-usd.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/images/svg/symbols/volatility-index-ic-200.svg b/src/images/svg/symbols/volatility-index-ic-200.svg
deleted file mode 100644
index 3b7b2d5b350..00000000000
--- a/src/images/svg/symbols/volatility-index-ic-200.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/images/svg/trading-specification/deriv-ez.svg b/src/images/svg/trading-specification/deriv-ez.svg
deleted file mode 100644
index 6cbc3a5b9a9..00000000000
--- a/src/images/svg/trading-specification/deriv-ez.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/src/images/svg/trading-specification/deriv-mt5.svg b/src/images/svg/trading-specification/deriv-mt5.svg
deleted file mode 100644
index 256060d3e0a..00000000000
--- a/src/images/svg/trading-specification/deriv-mt5.svg
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/src/pages/markets/components/helper/_available-platforms.tsx b/src/pages/markets/components/helper/_available-platforms.tsx
index 28a91c4f971..ea04bf4031c 100644
--- a/src/pages/markets/components/helper/_available-platforms.tsx
+++ b/src/pages/markets/components/helper/_available-platforms.tsx
@@ -12,7 +12,7 @@ import DBot from 'images/svg/custom/rebranding/deriv-bot-icon.svg'
import DMT5 from 'images/svg/custom/rebranding/dmt5-icon.svg'
import DTrader from 'images/svg/custom/rebranding/dtrader-icon.svg'
import DerivGo from 'images/svg/custom/rebranding/deriv-go-icon.svg'
-import DerivEZ from 'images/svg/trading-specification/deriv-ez.svg'
+import DerivEZ from 'images/svg/dtrader/ez-icon.svg'
import useRegion from 'components/hooks/use-region'
type AvailablePlatformsProps = {
diff --git a/src/pages/markets/components/sections/_other-markets.tsx b/src/pages/markets/components/sections/_other-markets.tsx
index d339fef1fa9..c159694195f 100644
--- a/src/pages/markets/components/sections/_other-markets.tsx
+++ b/src/pages/markets/components/sections/_other-markets.tsx
@@ -6,7 +6,7 @@ import { localize, Localize, LocalizedLink } from 'components/localization'
//TODO: using temp svg as a function for having dynamic id
import Arrow from 'images/svg/trade-types/arrow-right.svg'
import Commodities from 'images/svg/markets/commodities-new.svg'
-import Cryptocurrencies from 'images/svg/markets/cryptocurrencies-new.svg'
+import Cryptocurrencies from 'images/svg/markets/cryptocurrencies.svg'
import Forex from 'images/svg/markets/forex-new.svg'
import StockIndices from 'images/svg/markets/stock-new.svg'
import DerivedFX from 'images/svg/markets/derived-fx.svg'
diff --git a/src/pages/markets/instruments/_market-symbols.tsx b/src/pages/markets/instruments/_market-symbols.tsx
index 791b411ce5c..3cf7095bdeb 100644
--- a/src/pages/markets/instruments/_market-symbols.tsx
+++ b/src/pages/markets/instruments/_market-symbols.tsx
@@ -211,7 +211,7 @@ export const europe: TMarketSymbol[] = [
text: '_t_Swiss 20_t_',
},
{
- src: icons.STOCKSUK100,
+ src: icons.UK100,
text: '_t_UK 100_t_',
},
]
@@ -718,7 +718,7 @@ export const stocks_european_indices: TMarketSymbol[] = [
text: '_t_Germany 40_t_',
},
{
- src: icons.STOCKSUK100,
+ src: icons.UK100,
text: '_t_UK 100_t_',
},
{
diff --git a/src/pages/markets/static/content/_market-symbols.tsx b/src/pages/markets/static/content/_market-symbols.tsx
index 8be5cd04d07..b14fea88cc1 100644
--- a/src/pages/markets/static/content/_market-symbols.tsx
+++ b/src/pages/markets/static/content/_market-symbols.tsx
@@ -314,7 +314,7 @@ export const europe: TMarketSymbol[] = [
text: '_t_Swiss 20_t_',
},
{
- src: icons.STOCKSUK100,
+ src: icons.UK100,
text: '_t_UK 100_t_',
},
]
@@ -839,7 +839,7 @@ export const stocks_european_indices: TMarketSymbol[] = [
eu: true,
},
{
- src: icons.STOCKSUK100,
+ src: icons.UK100,
text: '_t_UK 100_t_',
eu: true,
},
diff --git a/src/pages/trade-types/cfds/_available-markets.tsx b/src/pages/trade-types/cfds/_available-markets.tsx
index 42fbd2f0bef..3a7f1b2333e 100644
--- a/src/pages/trade-types/cfds/_available-markets.tsx
+++ b/src/pages/trade-types/cfds/_available-markets.tsx
@@ -9,7 +9,7 @@ import { localize, Localize } from 'components/localization'
import useRegion from 'components/hooks/use-region'
import Forex from 'images/svg/trade-types/forex.svg'
import ETFs from 'images/svg/markets/etfs.svg'
-import Cryptocurrencies from 'images/svg/trade-types/cryptocurrencies.svg'
+import Cryptocurrencies from 'images/svg/markets/cryptocurrencies-new.svg'
import Commodities from 'images/svg/trade-types/commodities.svg'
import Derived from 'images/svg/trade-types/derived.svg'
import StockIndices from 'images/svg/trade-types/stock-indices.svg'
diff --git a/src/pages/trader-tools/common/_underlying-data.tsx b/src/pages/trader-tools/common/_underlying-data.tsx
index 7f933b93d86..f63facbbd45 100644
--- a/src/pages/trader-tools/common/_underlying-data.tsx
+++ b/src/pages/trader-tools/common/_underlying-data.tsx
@@ -73,8 +73,8 @@ import {
USDSEK,
USDBASKET,
USDJPY,
- VINDEXIC200,
- VINDEXIC300,
+ VOLATILITY200EU,
+ VOLATILITY300EU,
} from 'components/elements/symbols'
export const optionItemDefault = {
@@ -251,14 +251,14 @@ export const syntheticItemLists = [
{
name: 'Volatility 200 (1s) Index',
display_name: 'Volatility 200 (1s) Index',
- icon: ,
+ icon: ,
market: 'synthetic_indices',
symbol: '1HZ200V',
},
{
name: 'Volatility 300 (1s) Index',
display_name: 'Volatility 300 (1s) Index',
- icon: ,
+ icon: ,
market: 'synthetic_indices',
symbol: '1HZ300V',
},
diff --git a/src/pages/trading-specification/components/_available-platform.tsx b/src/pages/trading-specification/components/_available-platform.tsx
index 50dedc94a5c..8c43df38b68 100644
--- a/src/pages/trading-specification/components/_available-platform.tsx
+++ b/src/pages/trading-specification/components/_available-platform.tsx
@@ -2,9 +2,9 @@ import React from 'react'
import styled from 'styled-components'
import useRegion from 'components/hooks/use-region'
import { Flex } from 'components/containers'
-import DerivMT5 from 'images/svg/trading-specification/deriv-mt5.svg'
+import DerivMT5 from 'images/common/markets/mt5.svg'
import DerivX from 'images/svg/trading-specification/deriv-x.svg'
-import DerivEZ from 'images/svg/trading-specification/deriv-ez.svg'
+import DerivEZ from 'images/svg/dtrader/ez-icon.svg'
import { Localize, LocalizedLink, localize } from 'components/localization'
import device from 'themes/device'
import { Header } from 'components/elements'
diff --git a/src/pages/trading-specification/data/_stocks_specification.ts b/src/pages/trading-specification/data/_stocks_specification.ts
index 73fb7a4fef8..be6cb3fabf8 100644
--- a/src/pages/trading-specification/data/_stocks_specification.ts
+++ b/src/pages/trading-specification/data/_stocks_specification.ts
@@ -144,7 +144,7 @@ const stocks_specification: TSpecification = {
},
{
instrument: {
- symbol: 'STOCKSUK100',
+ symbol: 'UK100',
swf_icon: true,
instrument: 'UK 100',
},
@@ -1449,7 +1449,7 @@ const stocks_specification: TSpecification = {
},
{
instrument: {
- symbol: 'STOCKSUK100',
+ symbol: 'UK100',
instrument: 'UK 100',
},
contract_size: 1,