Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ref: merge with stardust-develop * feat: deactivate sendAndReceive * feat: setup features for top bar * fix: add missing lang attribute * ref: move feature flags to wallet * ui: add fixed positions for top bar elements * fix: change onClick of AccountActionsButton back
- Loading branch information
1 parent
a05cadf
commit 6ac2418
Showing
8 changed files
with
91 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="typescript"> | ||
import { Icon as IconEnum } from '@auxiliary/icon' | ||
import { selectedAccount } from '@core/account' | ||
import { Icon } from 'shared/components' | ||
import { AccountLabel } from 'shared/components/atoms/' | ||
function onClick(): void {} | ||
</script> | ||
|
||
<button on:click={onClick} class="flex flex-row justify-center items-center space-x-2"> | ||
<AccountLabel account={$selectedAccount} /> | ||
<div class="rotate-180"> | ||
<Icon height="18" width="18" icon={IconEnum.ChevronDown} classes="text-gray-500 dark:text-white" /> | ||
</div> | ||
</button> |
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,22 @@ | ||
<script lang="typescript"> | ||
import { AccountSwitcher, AccountActionsButton, ProfileActionsButton } from './' | ||
import features from '../features/features' | ||
</script> | ||
|
||
<div class="grid grid-cols-4 h-10"> | ||
<div class="col-span-1"> | ||
{#if features?.wallet?.profileActions?.enabled} | ||
<ProfileActionsButton /> | ||
{/if} | ||
</div> | ||
<div class="flex justify-center col-span-2 content-center"> | ||
{#if features?.wallet?.accountSwitcher?.enabled} | ||
<AccountSwitcher /> | ||
{/if} | ||
</div> | ||
<div class="flex justify-end col-span-1"> | ||
{#if features?.wallet?.accountActions?.enabled} | ||
<AccountActionsButton /> | ||
{/if} | ||
</div> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
packages/mobile/components/buttons/AccountActionsButton.svelte
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,5 @@ | ||
<script lang="typescript"> | ||
import { MeatballMenuButton } from 'shared/components' | ||
</script> | ||
|
||
<MeatballMenuButton onClick={() => {}} classes="items-center text-gray-500" /> |
12 changes: 12 additions & 0 deletions
12
packages/mobile/components/buttons/ProfileActionsButton.svelte
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,12 @@ | ||
<script lang="typescript"> | ||
import { activeProfile } from '@core/profile' | ||
import { getInitials } from '@lib/helpers' | ||
// @TODO fix the linting error that profileInitial isn't used | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
$: profileInitial = getInitials($activeProfile?.name, 1) | ||
</script> | ||
|
||
<button class="w-10 h-10 relative flex items-center justify-center rounded-full bg-blue-500 leading-100"> | ||
<span class="text-12 text-center text-white uppercase">{profileInitial}</span> | ||
</button> |
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 +1,3 @@ | ||
export { default as AccountActionsButton } from './AccountActionsButton.svelte' | ||
export { default as ProfileActionsButton } from './ProfileActionsButton.svelte' | ||
export { default as ProfileButton } from './ProfileButton.svelte' |
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