diff --git a/src/lib/components/navigation/sidemenu.svelte b/src/lib/components/navigation/sidemenu.svelte index 04fa946ad..346157de5 100644 --- a/src/lib/components/navigation/sidemenu.svelte +++ b/src/lib/components/navigation/sidemenu.svelte @@ -23,6 +23,10 @@ features.push({ href: `/${network}/staking`, text: 'Staking' }); } + if (network.supports('staking')) { + features.push({ href: `/${network}/staking`, text: 'Staking' }); + } + if (network.supports('rammarket')) { features.push({ href: `/${network}/ram`, text: 'RAM' }); } @@ -35,11 +39,10 @@ if (context.account) { items.splice(1, 0, { - href: `/${network}/account/${context.account.name}`, + href: `/${network}/account`, text: 'My Account' }); } - return items; }); diff --git a/src/routes/[network]/(account)/account/+layout.svelte b/src/routes/[network]/(account)/account/+layout.svelte new file mode 100644 index 000000000..a838b0ded --- /dev/null +++ b/src/routes/[network]/(account)/account/+layout.svelte @@ -0,0 +1,36 @@ + + +
+ +

Account

+
+ +
+ +{@render children()} diff --git a/src/routes/[network]/(account)/account/+page.svelte b/src/routes/[network]/(account)/account/+page.svelte new file mode 100644 index 000000000..588d85580 --- /dev/null +++ b/src/routes/[network]/(account)/account/+page.svelte @@ -0,0 +1,4 @@ + + +
Overview
\ No newline at end of file diff --git a/src/routes/[network]/(account)/account/activity/+page.svelte b/src/routes/[network]/(account)/account/activity/+page.svelte new file mode 100644 index 000000000..f6e48609f --- /dev/null +++ b/src/routes/[network]/(account)/account/activity/+page.svelte @@ -0,0 +1,4 @@ + + +
Activity
\ No newline at end of file diff --git a/src/routes/[network]/(account)/account/balances/+page.svelte b/src/routes/[network]/(account)/account/balances/+page.svelte new file mode 100644 index 000000000..8a0c9736b --- /dev/null +++ b/src/routes/[network]/(account)/account/balances/+page.svelte @@ -0,0 +1,4 @@ + + +
Blances
\ No newline at end of file diff --git a/src/routes/[network]/(account)/account/chaindata/+page.svelte b/src/routes/[network]/(account)/account/chaindata/+page.svelte new file mode 100644 index 000000000..910738144 --- /dev/null +++ b/src/routes/[network]/(account)/account/chaindata/+page.svelte @@ -0,0 +1,4 @@ + + +
Data
\ No newline at end of file