Skip to content

ImgComponent as Image from next.js #3295

Answered by wingkwong
uigywnkiub asked this question in Help
Discussion options

You must be logged in to vote

Can you try the following - putting src and alt outside imgProps.

avatarProps={{
  ImgComponent: NextImage,
  imgProps: {
    width: 40,
    height: 40,
  },
  src: session?.user.image || '',
  alt: "U",
}}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@uigywnkiub
Comment options

@wingkwong
Comment options

Answer selected by uigywnkiub
@uigywnkiub
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants