From 80776186aa6c022511f00916cb78dff774278853 Mon Sep 17 00:00:00 2001 From: mantikoros <95266179+mantikoros@users.noreply.github.com> Date: Sat, 22 Jan 2022 18:16:23 -0600 Subject: [PATCH] /home for signed in users (#35) --- web/components/feed-create.tsx | 9 ++- web/components/manifold-logo.tsx | 6 +- web/pages/home.tsx | 104 +++++++++++++++++++++++++++++++ web/pages/index.tsx | 96 +++++----------------------- 4 files changed, 129 insertions(+), 86 deletions(-) create mode 100644 web/pages/home.tsx diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx index 061ac5ea..3e36794c 100644 --- a/web/components/feed-create.tsx +++ b/web/components/feed-create.tsx @@ -49,7 +49,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) { ) } -export default function FeedCreate(props: { user: User }) { +export default function FeedCreate(props: { user?: User }) { const { user } = props const [question, setQuestion] = useState('') @@ -70,9 +70,10 @@ export default function FeedCreate(props: { user: User }) {