Skip to content

Commit 24f4856

Browse files
committed
fix: confict 해결
1 parent 3c6e668 commit 24f4856

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/button/ChatStartButton.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
import { useNavigate } from "react-router-dom";
22
import { trackEvent } from "@/libs/analytics";
3+
34
type ChatStartButtonProps = {
45
mode: "go-fast" | "go-virtual" | "go-chat";
56
mbti?: string;
67
};
78

89
const ChatStartButton = ({ mode, mbti }: ChatStartButtonProps) => {
910
const navigate = useNavigate();
11+
1012
const handleNavigate = () => {
1113
switch (mode) {
1214
case "go-fast":
1315
trackEvent("Click", {
1416
page: "홈",
1517
element: "빠른 대화 시작"
1618
});
17-
navigate("/select-info", { state: "fastFriend" });
19+
navigate("/select-info", { state: { type: "fastFriend", mbti } });
1820
break;
1921
case "go-virtual":
2022
trackEvent("Click", {
2123
page: "홈",
2224
element: "친구 - 바로 대화하기"
2325
});
24-
navigate("/select-info", { state: "virtualFriend" });
26+
navigate("/select-info", { state: { type: "virtualFriend", mbti } });
2527
break;
2628
case "go-chat":
2729
navigate("/chat");

0 commit comments

Comments
 (0)