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

Convert some simple components to be functional #3961

Merged
merged 2 commits into from
Feb 3, 2021
Merged

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Feb 3, 2021

WHY are these changes introduced?

Death to class components!

WHAT is this pull request doing?

Converting the following components to be functional components:

  • Connected Item
  • Filter ConnectedFilterControl Item
  • List
  • Tabs List

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2021

🟡 This pull request modifies 5 files and might impact 13 other files. This is an average splash zone for a change, remember to tophat areas that could be affected.

Details:
All files potentially affected (total: 13)
📄 UNRELEASED.md (total: 0)

Files potentially affected (total: 0)

🧩 src/components/Connected/components/Item/Item.tsx (total: 11)

Files potentially affected (total: 11)

🧩 src/components/Filters/components/ConnectedFilterControl/components/Item/Item.tsx (total: 2)

Files potentially affected (total: 2)

🧩 src/components/List/List.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/Tabs/components/List/List.tsx (total: 1)

Files potentially affected (total: 1)

- Connected Item
- Filter ConnectedFilterControl Item
- List
- Tabs List
Copy link
Contributor

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎩 and code look good. Just that NamedExoticComponent that you can 🔥

@@ -1,4 +1,4 @@
import React, {PureComponent} from 'react';
import React, {NamedExoticComponent} from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were you planning on doing something with this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooh whoops. That was a hangover from a slightly different trick to tempt the types into playing nice that wasn't needed. Removed!

@BPScott BPScott merged commit c6ae169 into main Feb 3, 2021
@BPScott BPScott deleted the easy-hookifies branch February 3, 2021 22:52
sylvhama pushed a commit that referenced this pull request Mar 26, 2021
- Connected Item
- Filter ConnectedFilterControl Item
- List
- Tabs List
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

2 participants