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
|
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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,10 @@
|
|||||||
{
|
{
|
||||||
"name": "next"
|
"name": "next"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"paths": {
|
||||||
|
"react": ["./node_modules/@types/react"],
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user