mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 09:13:35 +01:00
reorg
This commit is contained in:
parent
c85c823812
commit
70f091368d
@ -5,7 +5,7 @@ import { ConnectButton } from '@rainbow-me/rainbowkit'
|
|||||||
import Alert from '../Alert/Alert'
|
import Alert from '../Alert/Alert'
|
||||||
import { InputGroup } from '../Input'
|
import { InputGroup } from '../Input'
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
import { SendNative, SendErc20 } from '../Send'
|
import { SendPrepareNative, SendPrepareErc20 } from '../SendPrepare'
|
||||||
import { useSend } from '../../hooks/useSend'
|
import { useSend } from '../../hooks/useSend'
|
||||||
import type { SendFormData } from './types'
|
import type { SendFormData } from './types'
|
||||||
import { useTokens } from '@features/Web3/hooks/useTokens'
|
import { useTokens } from '@features/Web3/hooks/useTokens'
|
||||||
@ -51,12 +51,15 @@ export default function Web3Form(): ReactElement {
|
|||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{selectedToken?.address === '0x0' ? (
|
{selectedToken?.address === '0x0' ? (
|
||||||
<SendNative
|
<SendPrepareNative
|
||||||
amount={debouncedAmount}
|
amount={debouncedAmount}
|
||||||
setSendFormData={setSendFormData}
|
setSendFormData={setSendFormData}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<SendErc20 amount={debouncedAmount} setSendFormData={setSendFormData} />
|
<SendPrepareErc20
|
||||||
|
amount={debouncedAmount}
|
||||||
|
setSendFormData={setSendFormData}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className={styles.disclaimer}>
|
<div className={styles.disclaimer}>
|
||||||
|
@ -5,7 +5,7 @@ import { abiErc20Transfer } from './abiErc20Transfer'
|
|||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import { useTokens } from '@features/Web3/hooks/useTokens'
|
import { useTokens } from '@features/Web3/hooks/useTokens'
|
||||||
|
|
||||||
export function SendErc20({
|
export function SendPrepareErc20({
|
||||||
amount,
|
amount,
|
||||||
setSendFormData
|
setSendFormData
|
||||||
}: {
|
}: {
|
@ -7,7 +7,7 @@ import {
|
|||||||
import siteConfig from '@config/blog.config'
|
import siteConfig from '@config/blog.config'
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
|
|
||||||
export function SendNative({
|
export function SendPrepareNative({
|
||||||
amount,
|
amount,
|
||||||
setSendFormData
|
setSendFormData
|
||||||
}: {
|
}: {
|
Loading…
Reference in New Issue
Block a user