diff --git a/src/components/articles/DisplayFAQs.tsx b/src/components/articles/DisplayFAQs.tsx index 060d5789..2ebbab9f 100644 --- a/src/components/articles/DisplayFAQs.tsx +++ b/src/components/articles/DisplayFAQs.tsx @@ -20,9 +20,9 @@ const DisplayFAQs: React.FC = ({ faqs }) => { return (
-

Frequently Asked Questions

+

Frequently Asked Questions

{faqs.length === 0 && ( -

No FAQs are added by the author yet.

+

No FAQs are added by the author yet.

)} {faqs.map((faq, index) => (
= ({ faqs }) => { >
-
Q{index + 1}:
-

{faq.question}

+
Q{index + 1}:
+

{faq.question}

{openIndex === index ? ( - + ) : ( - + )}
{openIndex === index && (
-
A{index + 1}:
-

{faq.answer}

+
A{index + 1}:
+

{faq.answer}

)} diff --git a/src/components/articles/SubmitArticleForm.tsx b/src/components/articles/SubmitArticleForm.tsx index 21e38916..c5342ac6 100644 --- a/src/components/articles/SubmitArticleForm.tsx +++ b/src/components/articles/SubmitArticleForm.tsx @@ -1,6 +1,5 @@ import React from 'react'; - import { Control, Controller, @@ -244,7 +243,7 @@ const SubmitArticleForm: React.FC = ({ {showPrivateCheckOption && (
onChange(checked ? 'Private' : 'Public')} + onCheckedChange={(checked: boolean) => onChange(checked ? 'Private' : 'Public')} checked={value === 'Private'} /> diff --git a/src/components/posts/PostCard.tsx b/src/components/posts/PostCard.tsx index 33c097ca..ea17a17a 100644 --- a/src/components/posts/PostCard.tsx +++ b/src/components/posts/PostCard.tsx @@ -62,7 +62,7 @@ const PostCard = (post: PostOut) => { height={36} />
-

{post.author.username}

+

{post.author.username}

·

{dayjs(post?.created_at).fromNow()}