chore(templates): fix website template unused ts-expect-error (#3652)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
],
|
||||
"paths": {
|
||||
"react": ["./node_modules/@types/react"],
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
|
||||
Reference in New Issue
Block a user