Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPrediger committed Jan 31, 2024
1 parent 0b78c7f commit 1e52af7
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 27 deletions.
42 changes: 19 additions & 23 deletions source/components/Modal/WarningBaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,30 +148,26 @@ export const TokenSuccessfulyAdded = ({
show = true,
title,
buttonText,
}: IDefaultModal) => {
const navigate = useNavigate();

return (
<ModalBase onClose={onClose} show={show}>
<div className="rounded-t-[50px] w-screen flex flex-col align-bottom justify-end items-center bg-brand-blue400 shadow-md">
<div className="bg-[#476daa] w-full py-5 rounded-t-[50px]">
<h1 className="text-white font-medium text-base">{title}</h1>
</div>
<div className="flex flex-col pt-6 pb-7 px-6 text-white text-left text-sm font-normal w-[94%] gap-5">
<p>{phraseOne}</p>
</div>
<Button
id="unlock-btn"
type="submit"
className="bg-white w-[22rem] h-10 text-brand-blue200 text-base mb-12 font-base font-medium rounded-2xl"
onClick={onClose}
>
{buttonText}
</Button>
}: IDefaultModal) => (
<ModalBase onClose={onClose} show={show}>
<div className="rounded-t-[50px] w-screen flex flex-col align-bottom justify-end items-center bg-brand-blue400 shadow-md">
<div className="bg-[#476daa] w-full py-5 rounded-t-[50px]">
<h1 className="text-white font-medium text-base">{title}</h1>
</div>
</ModalBase>
);
};
<div className="flex flex-col pt-6 pb-7 px-6 text-white text-left text-sm font-normal w-[94%] gap-5">
<p>{phraseOne}</p>
</div>
<Button
id="unlock-btn"
type="submit"
className="bg-white w-[22rem] h-10 text-brand-blue200 text-base mb-12 font-base font-medium rounded-2xl"
onClick={onClose}
>
{buttonText}
</Button>
</div>
</ModalBase>
);

export const TimeSetSuccessfuly = ({
phraseOne,
Expand Down
9 changes: 9 additions & 0 deletions source/pages/Send/Approve.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,15 @@ export const ApproveTransactionComponent = () => {
}}
/>

<EditPriorityModal
showModal={isOpenPriority}
setIsOpen={setIsOpenPriority}
customFee={customFee}
setCustomFee={setCustomFee}
setHaveError={setHaveError}
fee={fee}
/>

<DefaultModal
show={haveError}
title={t('send.verifyFields')}
Expand Down
4 changes: 2 additions & 2 deletions source/pages/Send/EditPriority.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Form, Input } from 'antd';
import { Form } from 'antd';
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';

import { Button, Modal, NeutralButton } from 'components/index';
import { Button } from 'components/index';
import { EditFeeModalBase } from 'components/Modal/EditFeeModalBase';
import { ICustomFeeParams, IFeeState } from 'types/transactions';
import removeScientificNotation from 'utils/removeScientificNotation';
Expand Down
12 changes: 11 additions & 1 deletion source/pages/Send/SendNTokenTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
verifyNetworkEIP1559Compatibility,
} from 'utils/index';

import { EditPriorityModal } from './EditPriority'; //TODO
import { EditPriorityModal } from './EditPriority';

export const SendNTokenTransaction = () => {
const {
Expand Down Expand Up @@ -422,6 +422,16 @@ export const SendNTokenTransaction = () => {
onClose={() => setHaveError(false)}
/>

<EditPriorityModal
showModal={isOpen}
setIsOpen={setIsOpen}
customFee={customFee}
setCustomFee={setCustomFee}
setHaveError={setHaveError}
fee={fee}
isSendLegacyTransaction={isLegacyTransaction}
/>

<DefaultModal
show={isReconectModalOpen}
title={t('settings.ledgerReconnection')}
Expand Down
11 changes: 10 additions & 1 deletion source/pages/Send/SendTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
TransactionDataComponent,
TransactionHexComponent,
} from './components';
import { EditPriorityModal } from './EditPriority'; //TODO
import { EditPriorityModal } from './EditPriority';
import { tabComponents, tabElements } from './mockedComponentsData/mockedTabs';

export const SendTransaction = () => {
Expand Down Expand Up @@ -252,6 +252,15 @@ export const SendTransaction = () => {
}}
/>

<EditPriorityModal
showModal={isOpen}
setIsOpen={setIsOpen}
customFee={customFee}
setCustomFee={setCustomFee}
setHaveError={setHaveError}
fee={fee}
/>

<DefaultModal
show={haveError}
title={t('send.verifyFields')}
Expand Down

0 comments on commit 1e52af7

Please sign in to comment.