Cretate delete project confirm dialog

This commit is contained in:
Takeshi Kimata
2024-05-26 14:46:00 +09:00
parent 691684e9b7
commit 3ce68ebd30
7 changed files with 25 additions and 8 deletions

View File

@@ -72,9 +72,9 @@ const TokenProvider = ({ locale, children }: TokenProps) => {
}, []);
useEffect(() => {
// check current path is private. pravate path is '/account/*' or '/projects/*'
// check current path is private. pravate path is '/account' or '/projects/*'
const isPrivatePath = (pathname: string) => {
return /^\/(account|projects)\/.*/.test(pathname);
return /^\/account(\/)?$/.test(pathname) || /^\/projects(\/)?$/.test(pathname);
};
const checkSignInPage = () => {