-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
list card component created and styled
- Loading branch information
1 parent
5c83e86
commit 6da4528
Showing
6 changed files
with
94 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script lang="ts"> | ||
import type { MsaInfo } from '$lib/storeTypes'; | ||
export let title = ''; | ||
export let list: { label: string; value: string }[] = []; | ||
export let connected = false; | ||
export let signingAddress = ''; | ||
export let msaInfo: MsaInfo; | ||
</script> | ||
|
||
<div class="content-block flex-grow min-w-fit relative"> | ||
<p class="section-title border-b border-divider pb-3">{title}</p> | ||
{#if !connected} | ||
<div class="pt-3">Not connected</div> | ||
{:else if signingAddress === ''} | ||
<div class="pt-3">No transaction signing address selected</div> | ||
{:else if msaInfo?.msaId === 0} | ||
<div class="pt-3">No Msa Id. Please create an MSA first.</div> | ||
{:else} | ||
<div class="mb-16"> | ||
{#each list as item} | ||
<div class="flex justify-between items-center py-3 border-b border-divider"> | ||
<div class="label">{item.label}</div> | ||
<div class="data-value-base">{item.value}</div> | ||
</div> | ||
{/each} | ||
<div class="absolute bottom-7 right-7"> | ||
<slot /> | ||
</div> | ||
</div> | ||
{/if} | ||
</div> |
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