Skip to content

Commit

Permalink
refactored injection
Browse files Browse the repository at this point in the history
  • Loading branch information
DerKatsche committed Jan 16, 2024
1 parent 2af0a7d commit 38e4b47
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { useEffect } from "react";
import { AdLerUIComponent } from "src/Components/Core/Types/ReactTypes";
import tailwindMerge from "../../../Utils/TailwindMerge";
import ILoadUserLearningWorldsInfoUseCase from "src/Components/Core/Application/UseCases/LoadUserLearningWorldsInfo/ILoadUserLearningWorldsInfoUseCase";
import CoreDIContainer from "~DependencyInjection/CoreDIContainer";
import ILoadingScreenPresenter from "~ReactComponents/GeneralComponents/LoadingScreen/ILoadingScreenPresenter";
import PRESENTATION_TYPES from "~DependencyInjection/Presentation/PRESENTATION_TYPES";
import { useTranslation } from "react-i18next";
Expand All @@ -27,7 +26,7 @@ export default function LearningWorldSelection({
useInjection<ILoadUserLearningWorldsInfoUseCase>(
USECASE_TYPES.ILoadUserLearningWorldsInfoUseCase
);
const loadingScreenPresenter = CoreDIContainer.get<ILoadingScreenPresenter>(
const loadingScreenPresenter = useInjection<ILoadingScreenPresenter>(
PRESENTATION_TYPES.ILoadingScreenPresenter
);

Expand Down

0 comments on commit 38e4b47

Please sign in to comment.