refactor: improve code quality
This commit is contained in:
1 parent
743d8dd9c2
commit
003c644146
20 files changed
+76
-69
No files matched your search
@@ -8,7 +8,7 @@ import I18nKey from "../i18n/i18nKey";
|
||||
import {getDir} from "../utils/url-utils";
|
||||
|
||||
interface Props {
|
||||
class: string;
|
||||
class?: string;
|
||||
entry: any;
|
||||
title: string;
|
||||
url: string;
|
||||
@@ -17,11 +17,10 @@ interface Props {
|
||||
category: string;
|
||||
image: string;
|
||||
description: string;
|
||||
words: number;
|
||||
draft: boolean;
|
||||
style: string;
|
||||
}
|
||||
const { entry, title, url, published, tags, category, image, description, words, style } = Astro.props;
|
||||
const { entry, title, url, published, tags, category, image, description, style } = Astro.props;
|
||||
const className = Astro.props.class;
|
||||
|
||||
const hasCover = image !== undefined && image !== null && image !== '';
|
||||
|
||||
Reference in new issue
Block a user