From c77c58e18143233be042c4980a6ed08ae9beac52 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 16 May 2022 19:40:23 +0200 Subject: chore: adjust and complete missing styles * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements --- src/components/organisms/forms/comment-form.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/components/organisms/forms/comment-form.tsx') diff --git a/src/components/organisms/forms/comment-form.tsx b/src/components/organisms/forms/comment-form.tsx index 9e0abdf..5ff4ea4 100644 --- a/src/components/organisms/forms/comment-form.tsx +++ b/src/components/organisms/forms/comment-form.tsx @@ -1,5 +1,5 @@ import Button from '@components/atoms/buttons/button'; -import Form from '@components/atoms/forms/form'; +import Form, { type FormProps } from '@components/atoms/forms/form'; import Heading, { type HeadingLevel } from '@components/atoms/headings/heading'; import Spinner from '@components/atoms/loaders/spinner'; import LabelledField from '@components/molecules/forms/labelled-field'; @@ -15,11 +15,7 @@ export type CommentFormData = { website?: string; }; -export type CommentFormProps = { - /** - * Set additional classnames to the form wrapper. - */ - className?: string; +export type CommentFormProps = Pick & { /** * Pass a component to print a success/error message. */ @@ -44,12 +40,12 @@ export type CommentFormProps = { }; const CommentForm: FC = ({ - className = '', Notice, parentId, saveComment, title, titleLevel = 2, + ...props }) => { const intl = useIntl(); const [name, setName] = useState(''); @@ -116,9 +112,9 @@ const CommentForm: FC = ({ return (
{title && ( -- cgit v1.2.3