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 HexColorDisplay to functional component #37

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Tamir198
Copy link
Contributor

After I changed the code I saw those linter issues (all inside HexColorDisplay component):

image

I think that for now, we can ignore this:

That's because all those functions need to go out to separate files (Extract out all logic into util so it can be tested) and it seems like they will be defined on the import line anyway.

Tell me what you think about that.

@dolby360
Copy link
Owner

@Tamir198 Actually I'm running your PR with storybook and it seems like it's not marking the items anymore.

@Tamir198
Copy link
Contributor Author

I will check and compare my code to the old one and fix it.
Do you remember where in the class based version was the relevant code for marking items?

@dolby360
Copy link
Owner

@Tamir198 OK I understand the problem.
After I tried to fix the issue I noticed that rearranging the functions is not going to work since we have complex dependencies.
Maybe breaking the logic into functions will be the right solution because now it's not working.

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