Feed, initial functionality #218

Merged
enes merged 6 commits from feat/131-feed into staging 2025-02-04 17:51:58 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 2053e22753 - Show all commits

View File

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