Skip to content

Commit

Permalink
remove feature flag & addkucoin #3 wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
tombertrand committed Jan 16, 2024
1 parent c7b9de6 commit b51d0c1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 31 deletions.
6 changes: 5 additions & 1 deletion server/cron/knownAccounts.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,16 @@
"alias": "KuCoin Hot Wallet #2",
"account": "nano_3iypqe87d399qnsgejk6jx11u334ep77ipgsrtg9zi31onpz9a4yfypjxnau"
},
{
"alias": "KuCoin Hot Wallet #3",
"account": "nano_3kc4zij11m87u6rs1kx3c4xrajufrw45b9nawruxu3t7yfcxcaui9r9gpqqg"
},
{
"alias": "ViNo Gateway to Vite",
"account": "nano_15fuam43az5zsnpitsire35ag9bj4w8eb1b8utioc5qoog8fuyygx9d8hqcc"
},
{
"alias": "Cwalet.com Hot wallet",
"alias": "Cwallet.com Hot wallet",
"account": "nano_3ftkrm3gb1ko1ko6bpsmaq9q1enesorjqdug9e64u54jsr5g6cbh1snb8aur"
},
{
Expand Down
8 changes: 6 additions & 2 deletions src/exchanges.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"name": "KuCoin Hot Wallet #2",
"account": "nano_3iypqe87d399qnsgejk6jx11u334ep77ipgsrtg9zi31onpz9a4yfypjxnau"
},
{
"name": "KuCoin Hot Wallet #3",
"account": "nano_3kc4zij11m87u6rs1kx3c4xrajufrw45b9nawruxu3t7yfcxcaui9r9gpqqg"
},
{
"name": "KuCoin Cold Wallet",
"account": "nano_1c3nz77f3t5bz346je4bwtcfxgfnp6habs9to4utfeuhjfpxdhkd593kn5gn"
Expand Down Expand Up @@ -91,7 +95,7 @@
"name": "CoinEx Cold Wallet #1",
"account": "nano_3h9633hp5ox5ejsmcip7mnm9ej5g8wppyig8ckzcgwus9p4bezoogwystb99"
},
{
{
"name": "CoinEx Cold Wallet #2",
"account": "nano_3aknpqaajsexriisrs3srzzr6cpw3y1cunwt4mxzagn8dg14xa9e5i3uaasd"
},
Expand All @@ -102,7 +106,7 @@
{
"name": "ChangeNow.io",
"account": "nano_1ed95h4er3wotpjksn1aemq3m1y5677qfzi9be6zumkjo3wxw5oy7j8zm6mo"
},
},
{
"name": "HitBTC Hot Wallet",
"account": "nano_1td9t7i3dj6xayhzf9t6xndqfj34crunefmig1fbxf9wna56eincgwm1tzi7"
Expand Down
46 changes: 18 additions & 28 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ const HomePage = () => {
const { availableSupply } = useAvailableSupply();
const { fiat } = React.useContext(PreferencesContext);

// Get the current URL
const currentUrl = window.location.href;

// Create URLSearchParams object
const urlParams = new URLSearchParams(new URL(currentUrl).search);

let isFeatureActive = urlParams.get("7d");
const {
marketStatistics,
isInitialLoading: isMarketStatisticsInitialLoading,
Expand Down Expand Up @@ -262,28 +255,25 @@ const HomePage = () => {
<Card
size="small"
title={
isFeatureActive ? (
<>
<Select
value={is24Hours}
onChange={(value: boolean) => {
console.log("~~~value", value);
setIs24Hours(value);
}}
<>
<Select
value={is24Hours}
onChange={(value: boolean) => {
setIs24Hours(value);
}}
>
<Option value={true}>{t("pages.home.last24Hours")}</Option>
<Option value={false}>{t("pages.home.last7Days")}</Option>
</Select>
<span>
<Tooltip
placement="right"
title={is24Hours ? t("tooltips.last24Hours") : t("tooltips.last7days")}
>
<Option value={true}>{t("pages.home.last24Hours")}</Option>
<Option value={false}>{t("pages.home.last7Days")}</Option>
</Select>
<span>
<Tooltip
placement="right"
title={is24Hours ? t("tooltips.last24Hours") : t("tooltips.last7days")}
>
<QuestionCircle />
</Tooltip>
</span>
</>
) : null
<QuestionCircle />
</Tooltip>
</span>
</>
}
>
<Row gutter={6}>
Expand Down

0 comments on commit b51d0c1

Please sign in to comment.