We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e620865 commit a31b17fCopy full SHA for a31b17f
frontend/src/components/Header/components/HeaderLoginButton.tsx
@@ -1,7 +1,17 @@
1
+import { useToast } from "@/components/Toast/useToast";
2
+import { useNavigate } from "react-router-dom";
3
+
4
const HeaderLoginButton = () => {
5
+ const navigate = useNavigate();
6
+ const showToast = useToast();
7
+ const handleButtonClicked = () => {
8
+ showToast({ message: "Guest로 시작합니다.", type: "default" });
9
+ navigate("/");
10
+ };
11
12
return (
- <button type="button" className="medium-16">
- Boarlog 체험하기
13
+ <button type="button" className="medium-16" onClick={handleButtonClicked}>
14
+ Guest로 시작하기
15
</button>
16
);
17
};
0 commit comments