This commit is contained in:
1 parent
62c58c7c89
commit
d670690816
4 files changed
+69
-21
No files matched your search
@@ -26,10 +26,11 @@ interface BlogPostClientProps {
|
||||
blog: any;
|
||||
publishedDate: string;
|
||||
authorName: string;
|
||||
authorTeam?: string;
|
||||
sanitizedContent: string;
|
||||
}
|
||||
|
||||
export default function BlogPostClient({ blog, publishedDate, authorName, sanitizedContent }: BlogPostClientProps) {
|
||||
export default function BlogPostClient({ blog, publishedDate, authorName, authorTeam, sanitizedContent }: BlogPostClientProps) {
|
||||
const [copied, setCopied] = useState(false);
|
||||
const [viewCount, setViewCount] = useState<number>(blog.viewCount || 0);
|
||||
const [commentName, setCommentName] = useState("");
|
||||
@@ -211,7 +212,7 @@ export default function BlogPostClient({ blog, publishedDate, authorName, saniti
|
||||
<div>
|
||||
<div className="font-black text-medical-gray-900 text-base">نویسنده: {authorName}</div>
|
||||
<div className="font-bold text-xs text-medical-gray-400 mt-0.5">
|
||||
تیم: {blog.authorTeam || BLOG_TEAM_FALLBACK}
|
||||
تیم: {authorTeam || blog.authorTeam || BLOG_TEAM_FALLBACK}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user