Skip to content

Commit 0f249b4

Browse files
authored
fix(ui-ux): update huobi logo (#741)
* update huobi logo * update Huobi to htx * revert id change * revert dfi config for testing * changed all huobi to htx * updated to Htx
1 parent 7b2faf9 commit 0f249b4

File tree

8 files changed

+70
-65
lines changed

8 files changed

+70
-65
lines changed

cypress/deprecated/dfi.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ context("/dfi page on desktop", () => {
6565
cy.findByTestId("ExchangeSection.Kucoin").should("be.visible");
6666
cy.findByTestId("ExchangeSection.EasyAu").should("be.visible");
6767
cy.findByTestId("ExchangeSection.EasyNz").should("be.visible");
68-
cy.findByTestId("ExchangeSection.Huobi").should("be.visible");
68+
cy.findByTestId("ExchangeSection.Htx").should("be.visible");
6969
cy.findByTestId("ExchangeSection.Transak").should("be.visible");
7070
cy.findByTestId("ExchangeSection.Bit").should("be.visible");
7171
cy.findByTestId("ExchangeSection.Bitmart").should("be.visible");
@@ -149,7 +149,7 @@ context("/dfi page on mobile", () => {
149149
cy.findByTestId("ExchangeSection.Kucoin").should("be.visible");
150150
cy.findByTestId("ExchangeSection.EasyAu").should("be.visible");
151151
cy.findByTestId("ExchangeSection.EasyNz").should("be.visible");
152-
cy.findByTestId("ExchangeSection.Huobi").should("be.visible");
152+
cy.findByTestId("ExchangeSection.Htx").should("be.visible");
153153
cy.findByTestId("ExchangeSection.Transak").should("be.visible");
154154
cy.findByTestId("ExchangeSection.Bybit").should("be.visible");
155155
cy.findByTestId("ExchangeSection.Swyftx").should("be.visible");

cypress/fixture/dfi.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export const exchanges = [
1111
url: "https://trade.kucoin.com/DFI-BTC",
1212
},
1313
{
14-
id: "huobi",
15-
name: "Huobi",
16-
url: "https://www.huobi.com/en-us/exchange/dfi_usdt",
14+
id: "htx",
15+
name: "Htx",
16+
url: "https://www.htx.com/trade/dfi_usdt",
1717
},
1818
{
1919
id: "gateio",
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
export default function Htx(): JSX.Element {
2+
return (
3+
<svg
4+
width="96"
5+
height="37"
6+
viewBox="0 0 96 37"
7+
fill="none"
8+
xmlns="http://www.w3.org/2000/svg"
9+
>
10+
<g clipPath="url(#clip0_1_28)">
11+
<mask
12+
id="mask0_1_28"
13+
maskUnits="userSpaceOnUse"
14+
x="0"
15+
y="0"
16+
width="96"
17+
height="37"
18+
>
19+
<path d="M96 0H0V37H96V0Z" fill="white" />
20+
</mask>
21+
<g mask="url(#mask0_1_28)">
22+
<path
23+
d="M15.9235 11.4164C16.0336 5.98306 12.947 1.24852 11.3393 0.110635C11.332 0.103308 11.1888 0.0264827 11.1998 0.238696C11.1998 0.242341 11.1961 0.242341 11.1961 0.246004C11.031 10.5091 5.73839 13.2752 2.86461 17.0364C-3.52168 25.4004 1.80752 34.9428 8.71128 36.7501C8.82886 36.7795 9.14813 36.8746 9.75375 36.9989C10.0694 37.0649 10.1612 36.7977 9.92984 36.3989C9.10406 34.9683 7.6359 32.5534 7.34607 29.4507C6.68541 22.2465 15.795 17.7389 15.9235 11.4164Z"
24+
fill="white"
25+
/>
26+
<path
27+
d="M19.403 14.8961C19.3479 14.8558 19.271 14.8594 19.2636 14.9289C19.1168 16.2352 17.7624 18.9427 15.9786 21.4746C9.97395 30.0106 12.9984 33.8816 15.3474 36.5673C15.7804 37.0649 15.9969 36.9552 16.2246 36.6003C16.4374 36.2636 16.7603 35.8355 18.1478 35.1806C18.3643 35.0782 23.6056 32.3048 24.1744 25.9897C24.7214 19.8794 20.7903 16.0155 19.403 14.8961Z"
28+
fill="#008CD6"
29+
/>
30+
<path
31+
d="M50.5823 13.341V35.8025H45.7485V26.7288H36.459V35.8025H31.5041V13.341H36.459V22.4149H45.7485V13.341H50.5823Z"
32+
fill="white"
33+
/>
34+
<path
35+
d="M72.9307 13.341V17.7828H70.6295H65.9902V35.7989H61.0171V17.7828H56.5025H54.2012V13.341H72.9307Z"
36+
fill="white"
37+
/>
38+
<path
39+
fillRule="evenodd"
40+
clipRule="evenodd"
41+
d="M90.5335 35.8246L84.8518 28.0092L79.2143 35.7916L73.7015 35.7989L82.0588 24.3321L74.1713 13.341H79.6804L96.0205 35.8246H90.5335Z"
42+
fill="white"
43+
/>
44+
<path
45+
d="M86.3969 18.3682L89.124 22.1442L95.5838 13.3373H90.104L86.3969 18.3682Z"
46+
fill="#008CD6"
47+
/>
48+
</g>
49+
</g>
50+
<defs>
51+
<clipPath id="clip0_1_28">
52+
<rect width="96" height="37" fill="white" />
53+
</clipPath>
54+
</defs>
55+
</svg>
56+
);
57+
}

src/components/icons/assets/exchanges/Huobi.tsx

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/components/icons/assets/exchanges/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { SVGProps } from "react";
22
import Bitrue from "./Bitrue";
33
import Kucoin from "./Kucoin";
4-
import Huobi from "./Huobi";
4+
import Htx from "./Htx";
55
import Gateio from "./Gateio";
66
import Transak from "./Transak";
77
import Bybit from "./Bybit";
@@ -19,7 +19,7 @@ const mapping: Record<string, (props: SVGProps<SVGSVGElement>) => JSX.Element> =
1919
{
2020
Bitrue,
2121
Kucoin,
22-
Huobi,
22+
Htx,
2323
Gateio,
2424
Transak,
2525
Bybit,

src/layouts/components/BuyDFIButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export function BuyDFIButton({
2121
url: "https://trade.kucoin.com/DFI-BTC",
2222
},
2323
{
24-
name: "Huobi",
25-
image: "/assets/img/exchanges/logo-huobi.png",
26-
url: "https://www.huobi.com/en-us/exchange/dfi_usdt",
24+
name: "Htx",
25+
image: "/assets/img/exchanges/logo-htx.png",
26+
url: "https://www.htx.com/trade/dfi_usdt",
2727
},
2828
{
2929
name: "Gate.io",

src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default function GetDFISectionExchanges() {
2222
url: "https://trade.kucoin.com/DFI-BTC",
2323
},
2424
{
25-
id: "GetDFISection.Exchange.Huobi",
26-
name: "Huobi",
27-
url: "https://www.huobi.com/en-us/exchange/dfi_usdt",
25+
id: "GetDFISection.Exchange.Htx",
26+
name: "Htx",
27+
url: "https://www.htx.com/trade/dfi_usdt",
2828
},
2929
{
3030
id: "GetDFISection.Exchange.Gateio",

0 commit comments

Comments
 (0)