-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: mobile settings drawer (#6013)
* chore(wip): kickoff refactor profile drawer * feat: add export backup * feat: add network status * chore: remove debris * style: reduce profile action buttons vertical spacing * chore(wip): kickoff refactor settings drawer * feat: add stronghold unlock logic & polish imports * feat: finish up drawer routing * fix: subscription error * enhancement: html custom tags and code conventions --------- Co-authored-by: Jean Ribeiro <contact@jeanribeiro.dev>
- Loading branch information
1 parent
54d6ac3
commit 1095bd4
Showing
36 changed files
with
284 additions
and
316 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
11 changes: 11 additions & 0 deletions
11
packages/mobile/components/drawers/profile/views/settings/SettingsRouter.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,11 @@ | ||
<script lang="ts"> | ||
import { SETTINGS_ROUTE_META } from '@/contexts/settings' | ||
import { settingsRoute, SettingsRoute } from '@/routers' | ||
import { SettingsIndexView } from './views' | ||
</script> | ||
|
||
{#if $settingsRoute === SettingsRoute.Init} | ||
<SettingsIndexView /> | ||
{:else} | ||
<svelte:component this={SETTINGS_ROUTE_META[$settingsRoute].view} /> | ||
{/if} |
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="ts"> | ||
import SettingsRouter from './SettingsRouter.svelte' | ||
</script> | ||
|
||
<SettingsRouter /> |
2 changes: 2 additions & 0 deletions
2
packages/mobile/components/drawers/profile/views/settings/index.js
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 SettingsView } from './SettingsView.svelte' | ||
|
||
export * from './views' |
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
Oops, something went wrong.