-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FE][CPF-36] Add listbox and basic people logic refactor #103
Conversation
6e3ffad
to
125034c
Compare
{!value && placeholder ? placeholder : value?.name} | ||
{selected ? ( | ||
<div | ||
onClick={(e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's avoid adding logic in jsx
onChange={(e) => onTabChange(e.target.value)} | ||
defaultValue={tabs.find((tab) => tab.key === currentTab)?.label} | ||
onChange={(e) => { | ||
const tab = tabs.find((tab) => tab.name === e.target.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about extracting it to the function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor stuff, let's align and merge this pr
No description provided.