refactor: Rewrite the composable to a helper method

This commit is contained in:
Fayaz Ahmed
2024-08-26 14:28:07 +05:30
parent 73fbfd5782
commit 3901abc009
18 changed files with 52 additions and 108 deletions
@@ -1,5 +1,5 @@
<script>
import { useGlobalConfig } from 'shared/composables/useGlobalConfig';
import { useInstallationName } from 'shared/helpers/installationHelper';
const {
LOGO_THUMBNAIL: logoThumbnail,
@@ -14,12 +14,6 @@ export default {
default: false,
},
},
setup() {
const { useInstallationName } = useGlobalConfig();
return {
useInstallationName,
};
},
data() {
return {
globalConfig: {
@@ -46,6 +40,9 @@ export default {
return '';
},
},
methods: {
useInstallationName,
},
};
</script>