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",
"version": "0.7.1",
"version": "0.7.3",
"homepage": "https://voce.chat",
"dependencies": {
"@metamask/onboarding": "^1.0.1",
+7 -7
View File
@@ -1,12 +1,12 @@
// import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { useDispatch } from "react-redux";
// import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
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 useLogout from "@/hooks/useLogout";
// import useLogout from "@/hooks/useLogout";
type Props = {
placement?: "session" | "chat";
@@ -15,12 +15,12 @@ type Props = {
const LoginTip = ({ placement = "chat" }: Props) => {
const { t } = useTranslation("welcome");
const { t: ct } = useTranslation();
const dispatch = useDispatch();
const { clearLocalData } = useLogout();
// const dispatch = useDispatch();
// const { clearLocalData } = useLogout();
const navigateTo = useNavigate();
const handleSignIn = () => {
dispatch(resetAuthData());
clearLocalData();
// dispatch(resetAuthData());
// clearLocalData();
navigateTo("/login");
};