Skip to content

Create color-changing function at a higher level and pass as prop #2

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

Open
spark-c opened this issue Aug 12, 2021 · 0 comments
Open

Comments

@spark-c
Copy link
Owner

spark-c commented Aug 12, 2021

There are now two components (SectionButton and ProjectCard) using identical functions for "color" state. Needs a small refactor, probably to place this in App.js and pass it down as a prop instead. probably just creating a small utilities.js file and importing it from there when needed.

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

No branches or pull requests

1 participant