-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f331df0
commit b2cff30
Showing
7 changed files
with
71 additions
and
60 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 |
---|---|---|
@@ -1,39 +1,37 @@ | ||
<script> | ||
import { E } from '@agoric/eventual-send'; | ||
import Card from 'smelte/src/components/Card'; | ||
import ListCard from '../lib/ListCard.svelte'; | ||
import ListItems from "../lib/ListItems.svelte"; | ||
import BoardId from "./BoardId.svelte"; | ||
import Import from "./Import.svelte"; | ||
import Contact from "./Contact.svelte"; | ||
import { walletP } from './store'; | ||
export let contacts; | ||
import { contacts, walletP } from './store'; | ||
</script> | ||
|
||
<style> | ||
div { | ||
margin: 1rem; | ||
/* border: 1px solid grey; */ | ||
} | ||
.float { | ||
float: right; | ||
margin: 0 1rem; | ||
} | ||
</style> | ||
<ListCard items={$contacts}> | ||
<div slot="title"> | ||
<Card.Title | ||
title="Contacts" | ||
/> | ||
</div> | ||
|
||
<div slot="empty"> | ||
No contacts. | ||
</div> | ||
|
||
<div slot="item-header" let:item> | ||
<Contact {item} details={false} /> | ||
</div> | ||
|
||
<div slot="item-details" let:item> | ||
<Contact {item} summary={false} /> | ||
</div> | ||
|
||
<section> | ||
<h2>Contacts | ||
<div class="float"><Import | ||
name="Contact" | ||
<div slot="actions"> | ||
<Import name="Contact" | ||
adder={(petname, obj) => E(walletP).addContact(petname, obj)}> | ||
Import | ||
</Import> | ||
</div></h2> | ||
<ListItems items={$contacts}> | ||
<div slot="item" let:item> | ||
<Contact contact={item} /> | ||
</div> | ||
<p slot="empty">No contacts.</p> | ||
</ListItems> | ||
</section> | ||
</Import> | ||
</div> | ||
</ListCard> |
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