chore(templates): fix website template unused ts-expect-error (#3652)

This commit is contained in:
Kalon Robson
2023-10-20 18:37:02 +01:00
committed by GitHub
parent 5282673746
commit 55b9bf40df
2 changed files with 5 additions and 9 deletions

View File

@@ -11,7 +11,6 @@ export const Media: React.FC<Props> = props => {
const Tag = (htmlElement as any) || Fragment
return (
// ts-expect-error
<Tag
{...(htmlElement !== null
? {
@@ -19,13 +18,7 @@ export const Media: React.FC<Props> = props => {
}
: {})}
>
{isVideo ? (
// @ts-expect-error
<Video {...props} />
) : (
// @ts-expect-error
<Image {...props} /> // eslint-disable-line
)}
{isVideo ? <Video {...props} /> : <Image {...props} />}
</Tag>
)
}

View File

@@ -23,7 +23,10 @@
{
"name": "next"
}
]
],
"paths": {
"react": ["./node_modules/@types/react"],
}
},
"include": [
"**/*.ts",