diff --git a/configs/app/features/saveOnGas.ts b/configs/app/features/saveOnGas.ts index 8cabb51f05..64d24ed56f 100644 --- a/configs/app/features/saveOnGas.ts +++ b/configs/app/features/saveOnGas.ts @@ -7,13 +7,11 @@ const title = 'Save on gas with GasHawk'; const config: Feature<{ apiUrlTemplate: string; - dappId: string; }> = (() => { if (getEnvValue('NEXT_PUBLIC_SAVE_ON_GAS_ENABLED') === 'true' && marketplace.isEnabled) { return Object.freeze({ title, isEnabled: true, - dappId: 'gas-hawk', apiUrlTemplate: 'https://core.gashawk.io/apiv2/stats/address/
/savingsPotential/0x1', }); } diff --git a/ui/address/details/AddressSaveOnGas.tsx b/ui/address/details/AddressSaveOnGas.tsx index 0b40c579e3..b21a3b9973 100644 --- a/ui/address/details/AddressSaveOnGas.tsx +++ b/ui/address/details/AddressSaveOnGas.tsx @@ -3,10 +3,8 @@ import { useQuery } from '@tanstack/react-query'; import React from 'react'; import * as v from 'valibot'; -import { route } from 'nextjs-routes'; - import config from 'configs/app'; -import LinkInternal from 'ui/shared/links/LinkInternal'; +import LinkExternal from 'ui/shared/links/LinkExternal'; import TextSeparator from 'ui/shared/TextSeparator'; const feature = config.features.saveOnGas; @@ -79,9 +77,9 @@ const AddressSaveOnGas = ({ gasUsed, address }: Props) => { GasHawk logo - + Save { percent.toLocaleString(undefined, { maximumFractionDigits: 0 }) }% with GasHawk - + );