Skip to content

Commit 3b6ab1e

Browse files
authored
chore: add instructions to the refund swap dialog (#1776)
1 parent 3f1f9c5 commit 3b6ab1e

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

frontend/src/screens/settings/DebugTools.tsx

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ import { Input } from "src/components/ui/input";
2121
import { Label } from "src/components/ui/label";
2222
import { RadioGroup, RadioGroupItem } from "src/components/ui/radio-group";
2323
import { Textarea } from "src/components/ui/textarea";
24+
import {
25+
Tooltip,
26+
TooltipContent,
27+
TooltipProvider,
28+
TooltipTrigger,
29+
} from "src/components/ui/tooltip";
2430
import { useInfo } from "src/hooks/useInfo";
2531

2632
import { request } from "src/utils/request";
@@ -183,7 +189,31 @@ function RefundSwapDialogContent() {
183189
</ExternalLink>
184190
</div>
185191
<div className="flex flex-col gap-2">
186-
<Label htmlFor="swapId">Swap Id</Label>
192+
<Label htmlFor="swapId">
193+
<TooltipProvider>
194+
<Tooltip>
195+
<TooltipTrigger>
196+
<div className="flex flex-row gap-1 items-center text-muted-foreground">
197+
Swap Id
198+
<InfoIcon className="h-4 w-4 shrink-0" />
199+
</div>
200+
</TooltipTrigger>
201+
<TooltipContent>
202+
<p>
203+
To find the Swap ID, close this dialog and click on the
204+
"List Swaps" button. Then you can look through and find a
205+
swap that is in state "FAILED" and matches the amount you
206+
tried to swap. The latest swaps are at the bottom of the
207+
list.
208+
</p>
209+
<p className="mt-2">
210+
When you have found the swap, copy the value of the id
211+
field. The swap Id will look something like uNHoD8QrAr9b.
212+
</p>
213+
</TooltipContent>
214+
</Tooltip>
215+
</TooltipProvider>
216+
</Label>
187217
<Input
188218
id="swapId"
189219
name="swapId"

0 commit comments

Comments
 (0)