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: Add presentational component to Result #3725

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Sep 23, 2024

What?

  • Breaks up the Result component -
    • Removes logic from Node.tsx
    • Moves this to a higher-order component within the Result component, with the previous behaviour being delegated to a Presentational component (for testing & Storybook).

Why?

#3716 has slightly descended into a large messy type fixing PR which I was trying to avoid. I'm splitting it up into smaller, more atomic, PRs in order to better highlight and track the actual important changes.

This pattern of using a Presentational component is used elsewhere multiple times. This was recently added to the MapAndLabel component here - #3585

@DafyddLlyr DafyddLlyr changed the title dp/result presentational component refactor: Add presentational component to Result Sep 23, 2024
Copy link

github-actions bot commented Sep 23, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr force-pushed the dp/result-presentational-component branch from 84815fa to 2ff011f Compare September 30, 2024 08:02
@DafyddLlyr DafyddLlyr merged commit 1c3e77f into main Sep 30, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/result-presentational-component branch September 30, 2024 08:18
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