refactor: improve code quality

This commit is contained in:
saicaca committed 2024-07-21 15:49:22 +08:00
1 parent 743d8dd9c2
commit 003c644146
20 files changed
+76 -69

No files matched your search

+2 -2
View File
@@ -10,9 +10,9 @@ interface Props {
published: Date;
tags: string[];
category: string;
hideTagsForMobile: boolean;
hideTagsForMobile?: boolean;
}
const {published, tags, category, hideTagsForMobile} = Astro.props;
const {published, tags, category, hideTagsForMobile = false} = Astro.props;
const className = Astro.props.class;
---