Skip to content

Commit

Permalink
Improved: imports to use translate function from dxp-components(hotwa…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jan 2, 2024
1 parent e05dd4e commit 7f9e519
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ReturnDetails from '@/views/ReturnDetails.vue'

import { hasPermission } from '@/authorization';
import { showToast } from '@/utils'
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'

import 'vue-router'
import { DxpLogin, useAuthStore } from '@hotwax/dxp-components';
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RootState from '@/store/RootState'
import OrderState from './OrderState'
import * as types from './mutation-types'
import { hasError, showToast } from '@/utils'
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'
import emitter from "@/event-bus";


Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/product/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ProductState from './ProductState'
import * as types from './mutation-types'
import { hasError, showToast } from '@/utils'
import emitter from '@/event-bus'
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'

const actions: ActionTree<ProductState, RootState> = {
async fetchProducts ({commit, state}, { productIds }) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/return/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RootState from '@/store/RootState'
import ReturnState from './ReturnState'
import * as types from './mutation-types'
import { hasError, showToast } from '@/utils'
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'
import emitter from '@/event-bus'

const actions: ActionTree<ReturnState, RootState> = {
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/shipment/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RootState from '@/store/RootState'
import ShipmentState from './ShipmentState'
import * as types from './mutation-types'
import { hasError, showToast } from '@/utils'
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'
import emitter from '@/event-bus'

const actions: ActionTree<ShipmentState, RootState> = {
Expand Down
3 changes: 1 addition & 2 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import RootState from '@/store/RootState'
import UserState from './UserState'
import * as types from './mutation-types'
import { hasError, showToast } from '@/utils'
import { translate } from '@/i18n'
import { Settings } from 'luxon';
import { getUserFacilities, logout, updateInstanceUrl, updateToken, resetConfig } from '@/adapter'
import {
Expand All @@ -13,7 +12,7 @@ import {
resetPermissions,
setPermissions
} from '@/authorization'
import { useAuthStore } from '@hotwax/dxp-components'
import { translate, useAuthStore } from '@hotwax/dxp-components'
import emitter from '@/event-bus'
import store from '@/store'

Expand Down
2 changes: 1 addition & 1 deletion src/user-utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'
import store from '@/store'
import { loadingController } from '@ionic/vue'

Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toastController } from '@ionic/vue';
import { translate } from '@/i18n'
import { translate } from '@hotwax/dxp-components'
import { Plugins } from '@capacitor/core';
import productHelpers from './product'
import { DateTime } from "luxon";
Expand Down
3 changes: 1 addition & 2 deletions src/views/AddProductModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ import { defineComponent } from 'vue';
import { closeOutline, checkmarkCircle } from 'ionicons/icons';
import { mapGetters } from 'vuex'
import { useStore } from "@/store";
import { ShopifyImg } from '@hotwax/dxp-components';
import { ShopifyImg, translate } from '@hotwax/dxp-components';
import { showToast } from '@/utils'
import { translate } from '@/i18n'
export default defineComponent({
name: "Modal",
Expand Down
3 changes: 1 addition & 2 deletions src/views/AddProductToPOModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ import { defineComponent } from 'vue';
import { closeOutline, checkmarkCircle } from 'ionicons/icons';
import { mapGetters } from 'vuex'
import { useStore } from "@/store";
import { ShopifyImg } from '@hotwax/dxp-components';
import { ShopifyImg, translate } from '@hotwax/dxp-components';
import { showToast } from '@/utils'
import { translate } from '@/i18n'
export default defineComponent({
name: "Modal",
Expand Down
3 changes: 1 addition & 2 deletions src/views/ReturnDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,12 @@ import { defineComponent } from 'vue';
import { checkmarkDone, barcodeOutline, locationOutline } from 'ionicons/icons';
import { mapGetters, useStore } from "vuex";
import AddProductModal from '@/views/AddProductModal.vue'
import { ShopifyImg } from '@hotwax/dxp-components';
import { ShopifyImg, translate } from '@hotwax/dxp-components';
import { useRouter } from 'vue-router';
import Scanner from "@/components/Scanner.vue";
import ImageModal from '@/components/ImageModal.vue';
import { hasError } from '@/utils';
import { showToast, productHelpers } from '@/utils'
import { translate } from '@/i18n'
import { Actions, hasPermission } from '@/authorization'
export default defineComponent({
Expand Down

0 comments on commit 7f9e519

Please sign in to comment.