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 components to decouple them #13

Merged
merged 4 commits into from Feb 2, 2022

Conversation

salcode
Copy link
Owner

@salcode salcode commented Feb 1, 2022

The biggest change in this PR is moving the data lookup into a Higher Order Component (WithSelectedBlock), the rest of the changes are renaming and reorganizing based on this change.

Resolves #11

Add Higher Order Component WithSelectedBlock, which passes the prop
"block" into its child, where the value of the "block" prop is the
JavaScript object for the currently selected block.
Modify BlockXray to take "block" as a prop, instead of doing the lookup
inside the BlockXray component.
@salcode salcode force-pushed the feat/refactor-components-to-decouple-11 branch from 9793b98 to 900e975 Compare February 2, 2022 02:52
@salcode salcode force-pushed the feat/refactor-components-to-decouple-11 branch from 900e975 to 93b20f6 Compare February 2, 2022 02:58
@salcode salcode merged commit 93b20f6 into develop Feb 2, 2022
@salcode salcode deleted the feat/refactor-components-to-decouple-11 branch February 2, 2022 03:06
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.

None yet

1 participant