mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
remove deprecated file (#18794)
`getComponents` file is no longer imported anywhere
This commit is contained in:
1 parent
1e7c27a27d
commit
9cb33d2fd3
1 file changed
-39
@@ -1,39 +0,0 @@
|
||||
import Image from 'next/legacy/image'
|
||||
import LinkCard from '~/components/LinkCard'
|
||||
import LinkCardsWrapper from '~/components/LinkCardsWrapper'
|
||||
|
||||
const ignoreClass = 'ignore-on-export'
|
||||
|
||||
function getComponents(type: any) {
|
||||
const components = {
|
||||
LinkCardsWrapper: (props: any) => <LinkCardsWrapper {...props} />,
|
||||
LinkCard: (props: any) => <LinkCard {...props} />,
|
||||
img: (props: any) => {
|
||||
if (props.className !== ignoreClass) {
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
'next-image--dynamic-fill',
|
||||
type === 'blog' && 'to-border-overlay from-border rounded-lg border bg-gradient-to-r',
|
||||
].join(' ')}
|
||||
>
|
||||
<Image
|
||||
{...props}
|
||||
className={['next-image--dynamic-fill', type === 'blog' && 'rounded-md border'].join(
|
||||
' '
|
||||
)}
|
||||
layout="fill"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
// eslint-disable-next-line @next/next/no-img-element, jsx-a11y/alt-text
|
||||
return <img {...props} />
|
||||
},
|
||||
}
|
||||
|
||||
return components
|
||||
}
|
||||
|
||||
export default getComponents
|
||||
Reference in new issue
Block a user