-
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 (#97)
closes #85 <img width="1353" alt="Screenshot 2024-01-17 at 3 18 30 PM" src="https://github.com/LibertyDSNP/provider-dashboard/assets/43625033/df0773cf-f76b-47f8-a5fe-fcefc205e5ac"> --------- Co-authored-by: Claire Olmstead <[email protected]>
- Loading branch information
1 parent
8532c1f
commit 428b65f
Showing
13 changed files
with
224 additions
and
157 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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> |
Oops, something went wrong.