mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: observableHistoryInjectable is not the only default
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
f386f44819
commit
6c5b643340
29 files changed
+40
-51
No files matched your search
@@ -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;
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user