8000 Minor changes · jscriptcoder/DEX-Aggregator@813d275 · GitHub
[go: up one dir, main page]

Skip to content

Commit 813d275

Browse files
committed
Minor changes
1 parent 81168d7 commit 813d275

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/components/Swap/TokenAmount.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
const debouncedOnInput = debounce(onInput, inputConfig.debounceWait)
6969
</script>
7070

71-
<div class="TokenAmount">
71+
<div class="TokenAmount" class:error={insufficientBalance}>
7272
<TokenSelector value={token} onSelect={onTokenSelect} disableValue={disableToken} />
7373
<div class="flex flex-col relative">
7474
<input
@@ -113,6 +113,10 @@
113113
md:hover:shadow-[0_0_0_2px_#6419e6];
114114
}
115115
116+
.TokenAmount.error {
117+
@apply !shadow-[0_0_0_2px_#f87171];
118+
}
119+
116120
input {
117121
@apply bg-transparent
118122
outline-none

src/components/utils/selectNetwork.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { switchNetwork } from "@wagmi/core"
2-
import { UserRejectedRequestError, type Chain } from "viem"
3-
import { errorToast, warningToast } from "../NotificationToast"
1+
import { switchNetwork } from '@wagmi/core'
2+
import { UserRejectedRequestError, type Chain } from 'viem'
3+
import { errorToast, warningToast } from '../NotificationToast'
44

55
export default async function selectNetwork(newNetwork: Chain) {
66
try {

src/libs/token/approveAllowance.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ type ApproveArgs = {
1111
chainId?: number
1212
}
1313

14-
export default async function approveAllowance({ account, address, spender, amount, chainId }: ApproveArgs): Promise<Hash> {
14+
export default async function approveAllowance({
15+
account,
16+
address,
17+
spender,
18+
amount,
19+
chainId,
20+
}: ApproveArgs): Promise<Hash> {
1521
const publicClient = getPublicClient(chainId)
1622

1723
// Let's first validate the write call by simulating it

0 commit comments

Comments
 (0)
0