fix: observableHistoryInjectable is not the only default

Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Gabriel committed 2023-04-24 20:58:37 +02:00
1 parent f386f44819
commit 6c5b643340
29 files changed
+40 -51

No files matched your search

+1 -2
View File
@@ -6,9 +6,8 @@ import { getInjectable } from "@ogre-tools/injectable";
import { createBrowserHistory } from "history";
import type { History } from "history";
const historyInjectable = getInjectable({
export const historyInjectable = getInjectable({
id: "history",
instantiate: (): History => createBrowserHistory(),
});
export default historyInjectable;
-4
View File
@@ -3,10 +3,6 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import observableHistoryInjectable from "./observable-history.injectable";
export * from "./history.injectable";
export * from "./observable-history.injectable";
export * from "./search-params";
export { createMemoryHistory } from "history";
export default observableHistoryInjectable;
@@ -5,9 +5,9 @@
import { getInjectable } from "@ogre-tools/injectable";
import { createObservableHistory } from "mobx-observable-history";
import { searchParamsOptions } from "./search-params";
import historyInjectable from "./history.injectable";
import { historyInjectable } from "./history.injectable";
const observableHistoryInjectable = getInjectable({
export const observableHistoryInjectable = getInjectable({
id: "observable-history",
instantiate: (di) => {
@@ -19,5 +19,3 @@ const observableHistoryInjectable = getInjectable({
return navigation;
},
});
export default observableHistoryInjectable;