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

View File

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