We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d78d64 commit 3da8fb1Copy full SHA for 3da8fb1
src/components/UpdateModal.astro
@@ -1,14 +1,14 @@
1
---
2
+import type { HTMLAttributes } from 'astro/types';
3
+
4
interface Update {
5
version: string;
6
date: string;
7
title: string;
- buttonText: string;
- buttonUrl: string;
8
updates: string[];
9
}
10
11
-interface Props {
+interface Props extends HTMLAttributes<'div'> {
12
updates: Update[];
13
14
src/pages/index.astro
@@ -10,8 +10,8 @@ import IconCursor from "../icons/cursor.astro";
import IconAt from "../icons/at.astro";
import IconArrow from "../icons/arrow.astro";
-// 获取最新的更新信息
-const latestUpdate = updateHistory[0];
+// 删除未使用的变量声明
+// const latestUpdate = updateHistory[0];
15
16
17
0 commit comments