mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Made welcome page configurable (#6232)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
2555643749
commit
a2d52fa6b8
11 files changed
+211
-23
No files matched your search
+5
-5
@@ -4,18 +4,18 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { Welcome } from "./welcome";
|
||||
import welcomeRouteInjectable from "../../../common/front-end-routing/routes/welcome/welcome-route.injectable";
|
||||
import defaultWelcomeRouteInjectable from "../../../common/front-end-routing/routes/welcome/default-welcome-route.injectable";
|
||||
import { routeSpecificComponentInjectionToken } from "../../routes/route-specific-component-injection-token";
|
||||
|
||||
const welcomeRouteComponentInjectable = getInjectable({
|
||||
id: "welcome-route-component",
|
||||
const defaultWelcomeRouteComponentInjectable = getInjectable({
|
||||
id: "default-welcome-route-component",
|
||||
|
||||
instantiate: (di) => ({
|
||||
route: di.inject(welcomeRouteInjectable),
|
||||
route: di.inject(defaultWelcomeRouteInjectable),
|
||||
Component: Welcome,
|
||||
}),
|
||||
|
||||
injectionToken: routeSpecificComponentInjectionToken,
|
||||
});
|
||||
|
||||
export default welcomeRouteComponentInjectable;
|
||||
export default defaultWelcomeRouteComponentInjectable;
|
||||
Reference in new issue
Block a user