update layu
This commit is contained in:
15
dashboard_js/app/routes/auth/logout.jsx
Normal file
15
dashboard_js/app/routes/auth/logout.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useNavigate } from 'react-router'
|
||||
import { useEffect } from 'react'
|
||||
import { useAuth } from '~/hooks/use-auth'
|
||||
|
||||
export default function Component() {
|
||||
const { signOut } = useAuth()
|
||||
const navigate = useNavigate()
|
||||
|
||||
useEffect(() => {
|
||||
signOut()
|
||||
navigate('/auth')
|
||||
}, [])
|
||||
|
||||
return <></>
|
||||
}
|
||||
9
dashboard_js/app/routes/auth/support.jsx
Normal file
9
dashboard_js/app/routes/auth/support.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Heading } from '~/components/heading'
|
||||
|
||||
export default function Component() {
|
||||
return (
|
||||
<>
|
||||
<Heading>...</Heading>
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Heading } from '../../../components/heading'
|
||||
|
||||
export default function Component() {
|
||||
return <>...</>
|
||||
}
|
||||
Reference in New Issue
Block a user