-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bridge-refactor' of github.com-taiko:taikochain/taiko-m…
…ono into bridge-refactor
- Loading branch information
Showing
55 changed files
with
1,014 additions
and
526 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
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
Oops, something went wrong.