mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 14:42:44 -05:00
login/logout logic, breadcrumbs, initial ui stuff
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import NavBar from '../components/NavBar'
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import { useAccount } from '../contexts/useAccount';
|
||||
import { useEffect } from 'react';
|
||||
export default function Gallery() {
|
||||
const currentPath = useLocation().pathname;
|
||||
const pathList = currentPath.split('/').slice(1);
|
||||
const { fetchUserData, user } = useAccount()
|
||||
|
||||
useEffect(() => {
|
||||
fetchUserData()
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-start h-full w-full bg-[#141414]">
|
||||
<NavBar path={pathList} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user