diff --git a/package.json b/package.json index 2cd2d22ac..e3e7a0141 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "app-v2", - "version": "2.0.39", + "version": "2.0.40", "private": true, "dependencies": { "@multiavatar/multiavatar": "^1.0.6", diff --git a/src/components/ActiveTransaction.tsx b/src/components/ActiveTransaction.tsx index 533d39450..bfffc4383 100644 --- a/src/components/ActiveTransaction.tsx +++ b/src/components/ActiveTransaction.tsx @@ -1,5 +1,6 @@ -import React from 'react'; +import React, { useContext } from 'react'; import { Box, Spinner, Text } from 'grommet'; +import { ThemeContext } from 'styled-components'; import { BiWallet } from 'react-icons/bi'; import { FiCheckCircle, FiPenTool, FiX } from 'react-icons/fi'; import { ApprovalType, IYieldProcess, ProcessStage, TxState } from '../types'; @@ -66,8 +67,10 @@ const ActiveTransaction = ({ full?: boolean; pad?: boolean; }) => { + const theme = useContext(ThemeContext); + const { green } = theme.global.colors; - const approvalMethod = useApprovalMethod(); + const approvalMethod = useApprovalMethod(); const iconSize = '1.5em'; const activeProcess = txProcess; @@ -79,10 +82,7 @@ const ActiveTransaction = ({ {!full && cancelAction() : () => null} />} )} - + {(activeProcess?.stage === ProcessStage.PROCESS_INACTIVE || !activeProcess) && ( {full && Review Transaction } @@ -92,7 +92,7 @@ const ActiveTransaction = ({ {activeProcess?.stage === ProcessStage.SIGNING_REQUESTED && ( {abbreviateHash(activeProcess.txHash, 3)} } subTitle={null} - icon={} + icon={} button={} full={full} /> diff --git a/src/components/AddTokenToMetamask.tsx b/src/components/AddTokenToMetamask.tsx index e33cf8ed1..52cc2bae6 100644 --- a/src/components/AddTokenToMetamask.tsx +++ b/src/components/AddTokenToMetamask.tsx @@ -50,7 +50,7 @@ const AddTokenToMetamsk = ({ address, symbol, decimals, image }: ITokenData) => return metamask ? ( -