Skip to content

Conversation

@leo95oliveira
Copy link
Contributor

This minor PR is to address an error that was coming from using React.FC to type the components of the library.

Error:
Component cannot be used as a JSX component. Its return type React.FC is not a valid JSX element

@vercel
Copy link

vercel bot commented May 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
components-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 3:42pm

isMulti?: boolean;
selectOptions: SelectOption[];
selectValue?: string | number;
selectValue?: string | number | MultiValue<SelectOption>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh nice, ignore my comment in the other CMA PR regarding this, didnt realise you had a PR here to solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants