Skip to content

Commit

Permalink
chore: add import contacts to nav actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusVirg committed Dec 17, 2023
1 parent 69c2e72 commit 40f28ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
4 changes: 2 additions & 2 deletions apps/resplice/src/common/components/NavActions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@
class="bg-white rounded-xl p-8 flex flex-col items-start space-y-4"
style="will-change: transform; transform: translateY({$translateY}px) scale({$scale})"
>
<!-- <button
<button
class="flex items-center space-x-2 focus:ring-4 focus:ring-green-200 focus:outline-none rounded-lg w-full"
on:click={() => push('/invite/contacts')}
>
<div class="p-2 rounded-lg bg-brand-primary text-brand-primary bg-opacity-20">
<PeopleIcon width={24} height={24} />
</div>
<p>Import Contacts</p>
</button> -->
</button>
<!-- <button
class="flex items-center space-x-2 focus:ring-4 focus:ring-green-200 focus:outline-none rounded-lg w-full"
on:click={() => push('/invite/create/handle')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
ConnectionEmptyIcon,
CameraIcon,
QRCodeIcon,
// PeopleIcon,
PersonAddIcon
PeopleIcon
} from '@resplice/components'
import connectionStore from '$modules/connection/connection.store'
import inviteStores from '$modules/invite/invite.store'
Expand Down Expand Up @@ -60,21 +59,13 @@
<p class="text-center px-8 py-2">
You can invite others to Resplice even if they don't have an account!
</p>
<!-- <Button
<Button
color="brand-light"
class="flex items-center justify-center w-56"
on:click={() => push('/invite/contacts')}
>
<PeopleIcon width={24} height={24} />
<span class="ml-2">Import Contacts</span>
</Button> -->
<Button
color="brand-light"
class="flex items-center justify-center w-56"
on:click={() => push('/invite/create/phone')}
>
<PersonAddIcon width={24} height={24} />
<span class="ml-2">Invite via Phone</span>
</Button>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function getNativeContacts(): Promise<ProviderContact[]> {
return {
id: idx.toString(),
name: c.name[0],
avatar: c.icon ? c.icon[0] || '' : '',
avatar: c.icon ? URL.createObjectURL(c.icon[0]) || '' : '',
attributes: attributes
}
})
Expand Down

0 comments on commit 40f28ed

Please sign in to comment.