chore: updates

This commit is contained in:
Tristan Yang
2024-03-17 17:02:02 +08:00
parent dbe173941b
commit 86bc9b8c29
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "vocechat-web", "name": "vocechat-web",
"version": "0.7.1", "version": "0.7.3",
"homepage": "https://voce.chat", "homepage": "https://voce.chat",
"dependencies": { "dependencies": {
"@metamask/onboarding": "^1.0.1", "@metamask/onboarding": "^1.0.1",
+7 -7
View File
@@ -1,12 +1,12 @@
// import { useEffect } from "react"; // import { useEffect } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { useDispatch } from "react-redux"; // import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import clsx from "clsx"; import clsx from "clsx";
import { resetAuthData } from "@/app/slices/auth.data"; // import { resetAuthData } from "@/app/slices/auth.data";
import Button from "@/components/styled/Button"; import Button from "@/components/styled/Button";
import useLogout from "@/hooks/useLogout"; // import useLogout from "@/hooks/useLogout";
type Props = { type Props = {
placement?: "session" | "chat"; placement?: "session" | "chat";
@@ -15,12 +15,12 @@ type Props = {
const LoginTip = ({ placement = "chat" }: Props) => { const LoginTip = ({ placement = "chat" }: Props) => {
const { t } = useTranslation("welcome"); const { t } = useTranslation("welcome");
const { t: ct } = useTranslation(); const { t: ct } = useTranslation();
const dispatch = useDispatch(); // const dispatch = useDispatch();
const { clearLocalData } = useLogout(); // const { clearLocalData } = useLogout();
const navigateTo = useNavigate(); const navigateTo = useNavigate();
const handleSignIn = () => { const handleSignIn = () => {
dispatch(resetAuthData()); // dispatch(resetAuthData());
clearLocalData(); // clearLocalData();
navigateTo("/login"); navigateTo("/login");
}; };