@@ -12,6 +12,7 @@ import Address from "$lib/components/address.svelte"
12
12
import type { Intents } from " $lib/components/TransferFrom/transfer/types.ts"
13
13
import type { Chain } from " $lib/types.ts"
14
14
import TokenBalance from " $lib/components/TransferFrom/components/TokenBalance.svelte"
15
+ import InlineLoadingDots from " $lib/components/InlineLoadingDots.svelte"
15
16
16
17
interface Props {
17
18
rawIntents: RawIntentsStore
@@ -26,6 +27,7 @@ export let intents: Props["intents"]
26
27
export let validation: Props [" validation" ]
27
28
export let chains: Props [" chains" ]
28
29
export let rotateTo: Props [" rotateTo" ]
30
+ $ : console .log (intents .quoteToken )
29
31
</script >
30
32
31
33
<div class =" flex flex-col w-full h-full" >
@@ -105,23 +107,28 @@ export let rotateTo: Props["rotateTo"]
105
107
<div >
106
108
{#if ! intents .channel }
107
109
<div class =" flex justify-center" >
108
- <p class ="text-xs text-center max-w-[230px]" >No recommended UCS03 channel to go from {toDisplayName ($rawIntents .source , chains )}
109
- to {toDisplayName ($rawIntents .destination , chains )}</p >
110
+ <p class =" text-xs text-center max-w-[230px]" >
111
+ No recommended UCS03 channel to go from {toDisplayName ($rawIntents .source , chains )}
112
+ to {toDisplayName ($rawIntents .destination , chains )}
113
+ </p >
110
114
</div >
111
115
{:else }
112
116
<div class =" flex flex-col gap-1 justify-end items-center" >
113
- <div class ="flex gap-4 text-muted-foreground text-xs" >{ intents . channel . source_connection_id }
114
- | {intents .channel .source_channel_id }
115
- <ArrowRightIcon /> {intents .channel .destination_connection_id } | {intents .channel .destination_channel_id }
117
+ <div class =" flex gap-4 text-muted-foreground text-xs" >
118
+ { intents . channel . source_connection_id } | {intents .channel .source_channel_id }
119
+ <ArrowRightIcon /> {intents .channel .destination_connection_id } | {intents .channel .destination_channel_id }
116
120
</div >
121
+
117
122
{#if ! $rawIntents .asset }
118
123
<p class =" text-xs" >Select an asset</p >
119
124
{:else if ! $rawIntents .source || ! $rawIntents .destination }
120
125
<p class =" text-xs" >Select source and destination</p >
121
- {:else if validation . args === " NO_QUOTE_AVAILABLE" }
122
- <div class =" text-xs text-center" >No Quote Token available for this transfer. Sending new assets to Cosmos is
123
- currently not supported and will be enabled in an update soon.
126
+ {:else if intents . quoteToken === " NO_QUOTE_AVAILABLE" }
127
+ <div class =" text-xs text-center" >
128
+ No Quote Token available for this transfer. Sending new assets to Cosmos is currently not supported and will be enabled in an update soon.
124
129
</div >
130
+ {:else if intents .quoteToken === " QUOTE_LOADING" }
131
+ <InlineLoadingDots />
125
132
{:else if intents .quoteToken }
126
133
<div class =" flex-1 flex flex-col items-center text-xs" >
127
134
<Token chainId ={$rawIntents .destination } denom ={intents .quoteToken } {chains }/>
@@ -132,8 +139,10 @@ export let rotateTo: Props["rotateTo"]
132
139
{/if }
133
140
</div >
134
141
{/if }
135
- <Button class ="w-full mt-2" disabled ={! validation .isValid } on:click ={() => rotateTo (" verifyFace" )}>Transfer
142
+ <Button class ="w-full mt-2" disabled ={! validation .isValid } on:click ={() => rotateTo (" verifyFace" )}>
143
+ Transfer
136
144
</Button >
137
145
</div >
146
+
138
147
</div >
139
148
</div >
0 commit comments