Skip to content

Commit

Permalink
fixed unclickable BottomTooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
DerKatsche committed Nov 16, 2023
1 parent af02484 commit 844573d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import PRESENTATION_TYPES from "~DependencyInjection/Presentation/PRESENTATION_T
import IExitModalPresenter from "~ReactComponents/LearningSpaceDisplay/ExitModal/IExitModalPresenter";
import { LearningElementTypes } from "src/Components/Core/Domain/Types/LearningElementTypes";
import bind from "bind-decorator";
import IGetLearningSpacePrecursorAndSuccessorUseCase from "../../../Application/UseCases/GetLearningSpacePrecursorAndSuccessor/IGetLearningSpacePrecursorAndSuccessorUseCase";
import USECASE_TYPES from "~DependencyInjection/UseCases/USECASE_TYPES";

export default class DoorPresenter implements IDoorPresenter {
private bottomTooltipPresenter: IBottomTooltipPresenter;
Expand Down Expand Up @@ -58,6 +60,9 @@ export default class DoorPresenter implements IDoorPresenter {

@bind
private openExitModal(): void {
CoreDIContainer.get<IGetLearningSpacePrecursorAndSuccessorUseCase>(
USECASE_TYPES.IGetLearningSpacePrecursorAndSuccessorUseCase
).execute();
this.exitModalPresenter.open(this.viewModel.isExit);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ export default function BottomTooltip({
<div
className={tailwindMerge(
className,
"absolute flex justify-center w-screen bottom-2 md:bottom-10 pointer-events-auto"
"absolute flex justify-center w-screen bottom-2 md:bottom-10"
)}
>
<StyledContainer
onClick={() => {
console.log("click"); // TODO: remove log when click works
viewModel.onClickCallback.Value();
}}
className="cursor-pointer"
onClick={viewModel.onClickCallback.Value}
>
<div className="flex items-center gap-1 p-2 font-bold rounded-lg lg:p-4 text-adlerdarkblue text-md lg:text-2xl bg-buttonbgblue">
{type !== LearningElementTypes.notAnElement &&
Expand Down

0 comments on commit 844573d

Please sign in to comment.