From a5a7bb2c8157b66385dcfe7acc37bdc6db01facc Mon Sep 17 00:00:00 2001 From: franm Date: Mon, 9 Sep 2024 16:12:32 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8staking:=20add=20etherscan=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/staking.tsx | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/pages/staking.tsx b/pages/staking.tsx index 2aac9f8e5..db169de24 100644 --- a/pages/staking.tsx +++ b/pages/staking.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type { NextPage } from 'next'; -import { Box, Button, Typography } from '@mui/material'; +import { Box, Button, Typography, useTheme } from '@mui/material'; import Image from 'next/image'; import { t } from 'i18next'; import { useModal } from 'contexts/ModalContext'; @@ -9,16 +9,22 @@ import StakingOperations from 'components/staking/StakingOperations'; import StakeChart from 'components/charts/StakeChart'; import Progress from 'components/staking/Progress'; import { StakeEXAProvider } from 'contexts/StakeEXAContext'; +import OpenInNewIcon from '@mui/icons-material/OpenInNew'; +import useEtherscanLink from 'hooks/useEtherscanLink'; +import { useStakedEXA } from 'hooks/useStakedEXA'; const Staking: NextPage = () => { const { open: openGetEXA } = useModal('get-exa'); + const { palette } = useTheme(); + const { address } = useEtherscanLink(); + const stakedEXA = useStakedEXA(); return ( - + {'EXA'} { {t('EXA Staking')} + {stakedEXA && ( + + )}