mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 01:03:37 +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 { InputGroup } from '../Input'
|
||||
import styles from './index.module.css'
|
||||
import { SendNative, SendErc20 } from '../Send'
|
||||
import { SendPrepareNative, SendPrepareErc20 } from '../SendPrepare'
|
||||
import { useSend } from '../../hooks/useSend'
|
||||
import type { SendFormData } from './types'
|
||||
import { useTokens } from '@features/Web3/hooks/useTokens'
|
||||
@ -51,12 +51,15 @@ export default function Web3Form(): ReactElement {
|
||||
) : null}
|
||||
|
||||
{selectedToken?.address === '0x0' ? (
|
||||
<SendNative
|
||||
<SendPrepareNative
|
||||
amount={debouncedAmount}
|
||||
setSendFormData={setSendFormData}
|
||||
/>
|
||||
) : (
|
||||
<SendErc20 amount={debouncedAmount} setSendFormData={setSendFormData} />
|
||||
<SendPrepareErc20
|
||||
amount={debouncedAmount}
|
||||
setSendFormData={setSendFormData}
|
||||
/>
|
||||
)}
|
||||
|
||||
<div className={styles.disclaimer}>
|
||||
|
@ -5,7 +5,7 @@ import { abiErc20Transfer } from './abiErc20Transfer'
|
||||
import { useEffect } from 'react'
|
||||
import { useTokens } from '@features/Web3/hooks/useTokens'
|
||||
|
||||
export function SendErc20({
|
||||
export function SendPrepareErc20({
|
||||
amount,
|
||||
setSendFormData
|
||||
}: {
|
@ -7,7 +7,7 @@ import {
|
||||
import siteConfig from '@config/blog.config'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
export function SendNative({
|
||||
export function SendPrepareNative({
|
||||
amount,
|
||||
setSendFormData
|
||||
}: {
|
Loading…
Reference in New Issue
Block a user