Skip to content

Commit a0679a4

Browse files
CopilotCalinator444
andcommitted
Fix: Remove duplicate flex wrapper and add TypeScript types
Co-authored-by: Calinator444 <65635198+Calinator444@users.noreply.github.com>
1 parent 8c7ce9b commit a0679a4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

components/articles/articleAuthor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const ArticleAuthor = ({
1616
url,
1717
}: ArticleAuthorProps) => {
1818
return (
19-
<div className="flex flex-row items-center gap-2 py-1">
19+
<>
2020
{image && (
2121
<Image
2222
src={image}
@@ -42,7 +42,7 @@ const ArticleAuthor = ({
4242
<div className="text-sm uppercase text-gray-500">{position}</div>
4343
</>
4444
)}
45-
</div>
45+
</>
4646
);
4747
};
4848

components/articles/articleCard.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,23 @@ const ArticleCard = ({ data }: ArticleCardProps) => {
4040
);
4141
};
4242

43+
type ArticleCardContentProps = {
44+
title: string;
45+
body: string;
46+
userName: string | null;
47+
userImage: string | null;
48+
userPosition: string | null;
49+
publishedDate?: string;
50+
};
51+
4352
const ArticleCardContent = ({
4453
title,
4554
body,
4655
userName,
4756
userImage,
4857
userPosition,
4958
publishedDate,
50-
}) => {
59+
}: ArticleCardContentProps) => {
5160
return (
5261
<div className="size-full bg-white">
5362
<div>

0 commit comments

Comments
 (0)