refactor: improve code quality

This commit is contained in:
saicaca
2024-07-21 15:47:49 +08:00
parent 743d8dd9c2
commit 003c644146
20 changed files with 76 additions and 69 deletions

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;
---