From bb788d52015fd797b58700910b940cebbee28dc3 Mon Sep 17 00:00:00 2001 From: jahooma Date: Thu, 27 Jan 2022 14:05:59 -0600 Subject: [PATCH] Change placeholder in fold create question --- web/components/feed-create.tsx | 7 +++++-- web/pages/fold/[...slugs]/index.tsx | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx index 25ffc965..f2fe3806 100644 --- a/web/components/feed-create.tsx +++ b/web/components/feed-create.tsx @@ -58,6 +58,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) { export default function FeedCreate(props: { user?: User tag?: string + placeholder?: string className?: string }) { const { user, tag, className } = props @@ -74,7 +75,9 @@ export default function FeedCreate(props: { // Rotate through a new placeholder each day // Easter egg idea: click your own name to shuffle the placeholder const daysSinceEpoch = Math.floor(Date.now() / 1000 / 60 / 60 / 24) - const placeholder = placeholders[daysSinceEpoch % placeholders.length] + const placeholder = + props.placeholder ?? + `e.g. ${placeholders[daysSinceEpoch % placeholders.length]}` return (
@@ -92,7 +95,7 @@ export default function FeedCreate(props: {