Skip to content

Commit

Permalink
[fix] add showToast after the final step
Browse files Browse the repository at this point in the history
  • Loading branch information
yixuan-zhou-uzh committed May 18, 2024
1 parent cebb3a7 commit 4fe7250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/RuleGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Header from "./Header";
import { FFmpeg } from "@ffmpeg/ffmpeg";
import "../../styles/views/RuleGuide.scss";
import { TourProvider, useTour } from "@reactour/tour"
import { showToast} from "../../helpers/toastService";

const mockGameTheme = "FOOD";
const mockCurrentPlayer = "id2";
Expand Down Expand Up @@ -346,6 +347,7 @@ const RuleGuide = () => {
disableDotsNavigation={true}
showCloseButton={false}
beforeClose={() => {
showToast("Congratulations! You have successfully completed the Rule Guide!\nEnjoy the game!", "success");
navigate("/lobby");
}}
>
Expand Down

0 comments on commit 4fe7250

Please sign in to comment.