Skip to content

Commit 1e256f6

Browse files
committed
chore: 修复tsc问题
1 parent 94831bc commit 1e256f6

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@
2222
"@tanstack/react-query": "^5.90.2",
2323
"@ant-design/icons": "^4.8.3",
2424
"@antv/dumi-theme-antv": "beta",
25-
"@antv/g2plot": "^2.3.1",
26-
"@antv/g6": "3.3.7",
27-
"@antv/util": "^3.3.1",
2825
"antd": "5.10.2",
29-
"chroma-js": "^2.1.0",
3026
"classnames": "^2.2.6",
31-
"d3": "^7.8.5",
3227
"dumi": "~2.4.21",
3328
"gh-pages": "^3.1.0",
3429
"husky": "^8.0.2",
3530
"lodash": "^4.17.20",
36-
"new-github-issue-url": "^1.0.0",
3731
"prettier": "^2.0.0",
3832
"pretty-quick": "^3.1.3",
3933
"react": "^18.3.1",

site/components/Banner/Banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default () => {
9595
return (
9696
<a
9797
className={styles.message}
98-
key={JSON.stringify(title)}
98+
key={`${link}_${title}_${subTitle}`}
9999
target="_blank"
100100
href={link}
101101
>

site/components/ThemeCharts/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function ThemeCharts() {
145145
<ColorPicker
146146
disabledAlpha
147147
trigger="hover"
148-
key={index}
148+
key={data.text}
149149
// onChange={(v: any, color: string) => setColors10(pick(color, true))}
150150
panelRender={(panel: React.ReactNode) => (
151151
<div className="custom-panel">
@@ -185,7 +185,7 @@ export function ThemeCharts() {
185185
className={classNames(styles.chart, {
186186
[styles.rightChart]: (index + 1) % 3 === 0,
187187
})}
188-
key={index}
188+
key={chart.msg}
189189
>
190190
<div className={styles.chartMsg}>{useT(chart.msg)}</div>
191191
<div className={styles.content}>

0 commit comments

Comments
 (0)