refactor: useRouteHelper to useReplaceRoute
This commit is contained in:
@@ -6,7 +6,7 @@ import { getContrastingTextColor } from '@chatwoot/utils';
|
||||
import { isEmptyObject } from 'widget/helpers/utils';
|
||||
import { getRegexp } from 'shared/helpers/Validators';
|
||||
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
||||
import { useRouterHelper } from 'widget/composables/useRouterHelper';
|
||||
import { useReplaceRoute } from 'widget/composables/useReplaceRoute';
|
||||
import darkModeMixin from 'widget/mixins/darkModeMixin';
|
||||
import configMixin from 'widget/mixins/configMixin';
|
||||
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const { replaceRoute } = useRouterHelper();
|
||||
const replaceRoute = useReplaceRoute();
|
||||
return { replaceRoute };
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user