From a6d5d5ad1558eacea0a6809ab415b290e0fea560 Mon Sep 17 00:00:00 2001 From: ingawei <46611122+ingawei@users.noreply.github.com> Date: Wed, 12 Oct 2022 00:24:59 -0500 Subject: [PATCH] made create a post button not daisy (#1027) yay no daisy --- web/components/create-post.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web/components/create-post.tsx b/web/components/create-post.tsx index a4b65661..23a9c116 100644 --- a/web/components/create-post.tsx +++ b/web/components/create-post.tsx @@ -4,12 +4,12 @@ import { Title } from 'web/components/title' import { TextEditor, useTextEditor } from 'web/components/editor' import { createPost } from 'web/lib/firebase/api' -import clsx from 'clsx' import Router from 'next/router' import { MAX_POST_TITLE_LENGTH } from 'common/post' import { postPath } from 'web/lib/firebase/posts' import { Group } from 'common/group' import { ExpandingInput } from './expanding-input' +import { Button } from './button' export function CreatePost(props: { group?: Group }) { const [title, setTitle] = useState('') @@ -91,12 +91,10 @@ export function CreatePost(props: { group?: Group }) { - + {error !== '' &&
{error}
}