-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bridge-ui): custom recipient address (#13309)
Co-authored-by: shadab-taiko <108871478+shadab-taiko@users.noreply.github.com>
- Loading branch information
1 parent
9350006
commit 56d8848
Showing
8 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script lang="ts"> | ||
import ButtonWithTooltip from '../ButtonWithTooltip.svelte'; | ||
import TooltipModal from '../modals/TooltipModal.svelte'; | ||
export let showTo: boolean = false; | ||
export let to: string = ''; | ||
let tooltipOpen: boolean = false; | ||
</script> | ||
|
||
<div class="flex flex-row justify-between mb-2 mt-2"> | ||
<ButtonWithTooltip onClick={() => (tooltipOpen = true)}> | ||
<span slot="buttonText">Custom Recipient</span> | ||
</ButtonWithTooltip> | ||
|
||
<input | ||
type="checkbox" | ||
class="toggle rounded-full duration-300" | ||
on:click={() => { | ||
showTo = !showTo; | ||
}} | ||
bind:checked={showTo} /> | ||
</div> | ||
{#if showTo} | ||
<input | ||
type="text" | ||
class="input input-primary bg-dark-2 input-md md:input-lg w-full focus:ring-0 border-dark-2" | ||
placeholder="0x..." | ||
name="to" | ||
bind:value={to} /> | ||
{/if} | ||
|
||
<TooltipModal title="Custom Recipient" bind:isOpen={tooltipOpen}> | ||
<span slot="body"> | ||
<p class="text-left"> | ||
You can set a custom address as the recipient of your funds, instead of | ||
your current wallet address. | ||
</p> | ||
</span> | ||
</TooltipModal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters