fix(feed): redirect

This commit is contained in:
en 2025-02-04 14:16:12 +01:00
parent 04d2807c23
commit 2053e22753
2 changed files with 3 additions and 1 deletions

View File

@ -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'>