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

[FE][CPF-36] Add listbox and basic people logic refactor #103

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

r1skz3ro
Copy link
Collaborator

No description provided.

@r1skz3ro r1skz3ro force-pushed the feat/cpf-36-people-page-improvements branch from 6e3ffad to 125034c Compare July 19, 2024 10:02
@r1skz3ro r1skz3ro marked this pull request as ready for review July 19, 2024 10:02
{!value && placeholder ? placeholder : value?.name}
{selected ? (
<div
onClick={(e) => {
Copy link
Collaborator

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);
Copy link
Collaborator

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?

Copy link
Collaborator

@skorekm skorekm left a 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

@r1skz3ro r1skz3ro merged commit 16ee51e into develop Jul 19, 2024
3 checks passed
@r1skz3ro r1skz3ro deleted the feat/cpf-36-people-page-improvements branch July 19, 2024 10:36
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.

3 participants