Skip to content

Commit

Permalink
feat: inject api client into bcf-components lib
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Apr 29, 2022
1 parent 61ec6dd commit 38102f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import BIMDataDesignSystem from "@bimdata/design-system/plugin-vue3.js";
import i18n from "@/i18n/index.js";
import router from "@/router/index.js";
import globalComponents from "@/components/global-components.js";
import apiClient from "@/services/api-client.js";
import ErrorService from "@/services/ErrorService.js";

import App from "./App.vue";
Expand All @@ -14,7 +15,7 @@ const app = createApp(App)
.use(i18n)
.use(router)
.use(BIMDataDesignSystem())
.use(BIMDataBcfComponents({ i18n }));
.use(BIMDataBcfComponents({ apiClient, i18n }));

// Register global components
for (const [name, component] of Object.entries(globalComponents)) {
Expand Down

0 comments on commit 38102f2

Please sign in to comment.