Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { Page } from 'web/components/layout/page'
|
|
import { useRedirectIfSignedOut } from 'web/hooks/use-redirect-if-signed-out'
|
|
import { useUser } from 'web/hooks/use-user'
|
|
import { useSaveScroll } from 'web/hooks/use-save-scroll'
|
|
import { Col } from 'web/components/layout/col'
|
|
import { LiveGeneratedFeed } from 'web/components/feed/live-generated-feed'
|
|
import { DailyStats } from 'web/components/home/daily-stats'
|
|
import { LoadingCards } from 'web/components/contract/feed-contract-card'
|
|
import { Welcome } from 'web/components/onboarding/welcome'
|
|
|
|
export default function Explore() {
|
|
useRedirectIfSignedOut()
|
|
const user = useUser()
|
|
useSaveScroll('explore', true)
|
|
|
|
return (
|
|
<Page trackPageView={'explore'} className=" !mt-0" banner={null}>
|
|
<Welcome />
|
|
{user && (
|
|
<DailyStats
|
|
className="bg-canvas-0 z-50 mb-1 w-full px-2 py-2"
|
|
user={user}
|
|
/>
|
|
)}
|
|
|
|
{!user ? (
|
|
<LoadingCards />
|
|
) : (
|
|
<Col className="mt-2 w-full items-center self-center pb-4 sm:px-4">
|
|
{user && <LiveGeneratedFeed userId={user.id} />}
|
|
</Col>
|
|
)}
|
|
</Page>
|
|
)
|
|
}
|