Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(UserProfileImage): added TS types to the component #4773

Merged
merged 18 commits into from
Apr 29, 2024

Conversation

devadula-nandan
Copy link
Contributor

Contributes to #4501

converted the component to ts, and added types.

What did you change?

packages/ibm-products/src/components/UserProfileImage/UserProfileImage.js -> tsx

How did you test and verify your work?

storybook, local verifying the available types on component

Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for carbon-for-ibm-products failed.

Name Link
🔨 Latest commit f2127ba
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6613d7cb067825000836014c

Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit b5fea0b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/662f36b20dd71f0008bc5446
😎 Deploy Preview https://deploy-preview-4773--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@devadula-nandan devadula-nandan marked this pull request as ready for review April 12, 2024 08:58
@devadula-nandan devadula-nandan requested a review from a team as a code owner April 12, 2024 08:58
@devadula-nandan devadula-nandan linked an issue Apr 12, 2024 that may be closed by this pull request
/**
* When passing the image prop use the imageDescription prop to describe the image for screen reader.
*/
imageDescription: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be conditionally required only if image is provided

/**
* Specify how the trigger should align with the tooltip
*/
tooltipAlignment?:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could do something like this

tooltipAlignment?: React.ComponentProps<typeof IconButton>['align'];

@matthewgallo matthewgallo added this pull request to the merge queue Apr 29, 2024
Merged via the queue into carbon-design-system:main with commit f24cbe9 Apr 29, 2024
16 checks passed
@devadula-nandan devadula-nandan deleted the nandan-v2-4501 branch April 30, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Typescript types to UserProfileImage
3 participants