Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(theme): enable the currency switcher on TopBar.vue #421

Merged
merged 1 commit into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions packages/theme/components/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,20 @@
</SfButton>
</template>
<template #right>
<!--
/**
* The currency switch is commented, until the Core package
* enables the switch of currency without returning to the browser one with i18n
*/
<CurrencySelector />
-->
<CurrencySelector />
<StoreSwitcher />
</template>
</SfTopBar>
</template>

<script>
import { SfButton, SfTopBar } from '@storefront-ui/vue';
// import CurrencySelector from './CurrencySelector';
import CurrencySelector from './CurrencySelector';
import StoreSwitcher from './StoreSwitcher';

export default {
components: {
// CurrencySelector,
CurrencySelector,
SfTopBar,
SfButton,
StoreSwitcher,
Expand Down
2 changes: 2 additions & 0 deletions packages/theme/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export default {
],
defaultLocale: 'default',
autoChangeCookie: {
currency: false,
locale: false,
country: false,
},
lazy: true,
seo: true,
Expand Down