fix(feed): redirect
This commit is contained in:
parent
04d2807c23
commit
2053e22753
@ -1,9 +1,11 @@
|
||||
import { Profile } from 'components/ProfileSection'
|
||||
import { useAppSelector } from 'hooks'
|
||||
import { Outlet } from 'react-router-dom'
|
||||
import { Navigate, Outlet } from 'react-router-dom'
|
||||
import { appRoutes } from 'routes'
|
||||
|
||||
export const FeedLayout = () => {
|
||||
const userState = useAppSelector((state) => state.user)
|
||||
if (!userState.user?.pubkey) return <Navigate to={appRoutes.home} />
|
||||
|
||||
return (
|
||||
<div className='InnerBodyMain'>
|
||||
|
Loading…
x
Reference in New Issue
Block a user