mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Extract Button component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<script lang="ts">
|
||||
import type { Config } from "@app/config";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { qrcode } from "pure-svg-code";
|
||||
|
||||
import Modal from "@app/Modal.svelte";
|
||||
import { state } from "@app/session";
|
||||
import type { Config } from "@app/config";
|
||||
import Button from "@app/Button.svelte";
|
||||
|
||||
export let uri: string;
|
||||
export let config: Config;
|
||||
@@ -72,13 +74,14 @@
|
||||
</div>
|
||||
|
||||
<div slot="actions">
|
||||
<button
|
||||
class="secondary small text-small"
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="small"
|
||||
on:click={onClickConnect}
|
||||
disabled={!config.metamask.signer}>
|
||||
Connect with Metamask
|
||||
</button>
|
||||
<button class="text small text-small" on:click={onClose}>Close</button>
|
||||
</Button>
|
||||
<Button variant="text" size="small" on:click={onClose}>Close</Button>
|
||||
</div>
|
||||
</Modal>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user