fix: add product

This commit is contained in:
ferdiansyah783
2025-08-05 21:31:53 +07:00
parent 0fde122ac4
commit 799837e82e
14 changed files with 393 additions and 68 deletions
-2
View File
@@ -14,8 +14,6 @@ import { getLocalizedUrl } from '../utils/i18n'
export default function AuthGuard({ children, locale }: ChildrenType & { locale: Locale }) {
const { isAuthenticated } = useAuth()
console.log('isAuthenticated', isAuthenticated)
useEffect(() => {
if (!isAuthenticated) {
redirect(getLocalizedUrl('/login', locale))