Skip to content

Commit a1672cb

Browse files
committed
eslint satify
1 parent dc5668d commit a1672cb

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

app/page.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function Home() {
8383
setModalStep(2)
8484
setModalOpen(true)
8585
}
86-
}, [isConnected, modalOpen, modalStep])
86+
}, [isConnected, modalOpen, modalStep, isProcessingTransaction])
8787

8888
const handleConnectClick = () => {
8989
if (!isConnected) {
@@ -115,7 +115,13 @@ export default function Home() {
115115

116116
removePendingTransaction(txId)
117117
})
118-
}, [amount, address, bridgeToEthereum])
118+
}, [
119+
amount,
120+
address,
121+
bridgeToEthereum,
122+
addPendingTransaction,
123+
removePendingTransaction,
124+
])
119125

120126
const handleBridgeToTari = () => {
121127
console.log('Bridging to Tari...')

components/modals/main-modal/main-modal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ export const MainModal: React.FC<MainModalProps> = ({
3333
setStep(1)
3434
}
3535

36-
const handleOutsideClick = (e: React.MouseEvent<HTMLDivElement>) => {
37-
if (modalRef.current && !modalRef.current.contains(e.target as Node)) {
38-
closeModal()
39-
}
40-
}
36+
// const handleOutsideClick = (e: React.MouseEvent<HTMLDivElement>) => {
37+
// if (modalRef.current && !modalRef.current.contains(e.target as Node)) {
38+
// closeModal()
39+
// }
40+
// }
4141

4242
if (step === 0 && isConnected) return null
4343

components/modals/wrap-modal/wrap-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React from 'react'
22
import Image from 'next/image'
33
// import { HiArrowRightOnRectangle } from 'react-icons/hi2'
44
import { WrapModalProps } from './wrap-modal.types'
5-
import { ModalButton } from '@/components/modals/modal-button'
5+
// import { ModalButton } from '@/components/modals/modal-button'
66
import { useBridgeInfo } from '@/hooks/use-bridge-info'
77

88
export const WrapModal: React.FC<WrapModalProps> = ({
9-
closeModal,
9+
// closeModal,
1010
amount,
1111
tariWalletAddress,
1212
ethereumAddress,

0 commit comments

Comments
 (0)