We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e0ec2a + 6cc3231 commit f1eb091Copy full SHA for f1eb091
src/app/swap/page.tsx
@@ -125,7 +125,13 @@ export default function SwapPage() {
125
canSwapOrder={true}
126
disable1={true}
127
/>
128
- <MemoDialog
+ {status === SwapStatus.CONNECT_WALLET ? <SubmitButton
129
+ onClick={async () => { await tonConnectUI.openModal() }}
130
+ isLoading={false}
131
+ isDisabled={isButtonDisabled()}
132
+ error={error || undefined}
133
+ content={buttonMessage}
134
+ /> : <MemoDialog
135
setMemo={setMemo}
136
onSubmit={async () => {
137
await swap();
@@ -145,7 +151,8 @@ export default function SwapPage() {
145
151
isDisabled={isButtonDisabled()}
146
152
error={error || undefined}
147
153
content={buttonMessage}
148
- />} />
154
+ />} />}
155
+
149
156
150
157
</div>
158
0 commit comments