Skip to content

Commit

Permalink
Merge pull request #13601 from ethereum/shadcn-image
Browse files Browse the repository at this point in the history
Shadcn migration - image
  • Loading branch information
wackerow authored Aug 13, 2024
2 parents 2fb4687 + cae511c commit a3b6413
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,18 @@ const DefaultNextImage = (props: ImageProps) => {
}

/**
* TODO: replace this component with import { Image } from "@chakra-ui/next-js"
* once https://github.com/vercel/next.js/issues/52216 is fixed
* TODO: Rename this component to `Image` once all components are using Tailwind
*/
export const TwImage = (props: NextImageProps) => (
<DefaultNextImage {...props} />
)

/**
* DEPRECATED: Use `TWImage` instead
*
* TODO: Remove this component once all components are using Tailwind
*
* @deprecated
*/
export const Image: ChakraComponent<"img", NextImageProps> = chakra(
DefaultNextImage,
Expand Down

0 comments on commit a3b6413

Please sign in to comment.