Skip to content

Commit

Permalink
Not using object type as default prop
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jun 18, 2024
1 parent c2fd18a commit 32c4a48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend/src/components/ArticleBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ import remarkGfm from "remark-gfm";
import { ColoredTag } from "./ColoredTag";
import { Article, H2, Paragraph } from "./Typography";

const emptyArray: Array<string> = [];

export const ArticleBox = ({
title,
link = undefined,
subtitle = undefined,
subtitleLink = undefined,
subtitleDescription = undefined,
description,
tags = [],
tags = emptyArray,
}: {
readonly title: string;
readonly link?: string;
Expand Down

0 comments on commit 32c4a48

Please sign in to comment.