try to deploy

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-13 21:27:56 +08:00
parent bfc4b9fc67
commit b1805cfe4d
87 changed files with 798 additions and 718 deletions
+9 -1
View File
@@ -1,10 +1,18 @@
import { useNavigate } from 'react-router-dom'
import { useAuth } from '@/contexts/AuthContext'
const DASHBOARD_BY_ROLE = {
admin: '/admin',
user: '/dashboard',
staff: '/staff',
}
export default function NotFound() {
const navigate = useNavigate()
const { user } = useAuth()
const goHome = () => {
navigate(-1)
navigate(DASHBOARD_BY_ROLE[user?.acc_type] ?? '/')
}
return (
+9 -1
View File
@@ -1,10 +1,18 @@
import { useNavigate } from 'react-router-dom'
import { useAuth } from '@/contexts/AuthContext'
const DASHBOARD_BY_ROLE = {
admin: '/admin',
user: '/dashboard',
staff: '/staff',
}
export default function Unauthorized() {
const navigate = useNavigate()
const { user } = useAuth()
const goHome = () => {
navigate(-1)
navigate(DASHBOARD_BY_ROLE[user?.acc_type] ?? '/')
}
return (