Feed, initial functionality #218
@ -1,9 +1,11 @@
|
|||||||
import { Profile } from 'components/ProfileSection'
|
import { Profile } from 'components/ProfileSection'
|
||||||
import { useAppSelector } from 'hooks'
|
import { useAppSelector } from 'hooks'
|
||||||
import { Outlet } from 'react-router-dom'
|
import { Navigate, Outlet } from 'react-router-dom'
|
||||||
|
import { appRoutes } from 'routes'
|
||||||
|
|
||||||
export const FeedLayout = () => {
|
export const FeedLayout = () => {
|
||||||
const userState = useAppSelector((state) => state.user)
|
const userState = useAppSelector((state) => state.user)
|
||||||
|
if (!userState.user?.pubkey) return <Navigate to={appRoutes.home} />
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='InnerBodyMain'>
|
<div className='InnerBodyMain'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user