Skip to content

Commit

Permalink
fix(theme): wrap account with container (#289)
Browse files Browse the repository at this point in the history
* fix(theme): wrap account with container

* fix(theme): account router path on userIconClick
  • Loading branch information
mkucmus authored and patzick committed Jan 16, 2020
1 parent 8308d66 commit b4716a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/default-theme/components/TopNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default {
)
},
async userIconClick() {
if (this.isLoggedIn) this.$router.push("account")
if (this.isLoggedIn) this.$router.push("/account")
else this.isModalOpen = true
}
}
Expand Down
4 changes: 3 additions & 1 deletion packages/default-theme/pages/account.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<SfContentPages
<div class="my-account">
<SfContentPages
title="My account"
:active="activePage"
@click:change="updateActivePage"
Expand Down Expand Up @@ -35,6 +36,7 @@
</SfContentCategory>
<SfContentPage title="Logout"></SfContentPage>
</SfContentPages>
</div>
</template>
<script>
import { SfContentPages, SfTabs, SfList } from "@storefront-ui/vue"
Expand Down

0 comments on commit b4716a4

Please sign in to comment.