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 React components to functions #571

Closed
49 tasks
emanuelen5 opened this issue Nov 16, 2024 · 0 comments · Fixed by #581
Closed
49 tasks

Convert React components to functions #571

emanuelen5 opened this issue Nov 16, 2024 · 0 comments · Fixed by #581
Labels
good first issue Good for newcomers legacy Old stuff that might need updating or refactoring

Comments

@emanuelen5
Copy link
Member

How to: https://react.dev/reference/react/Component#alternatives

To find old style components:

$ git grep -n 'extends React' | grep -v '.tsx' | cut -d: -f1,2 | sort

Todo:

  • admin/src/app.jsx:165
  • admin/src/Components/CategoryPeriodsInput.js:6
  • admin/src/Components/CheckboxInput.jsx:4
  • admin/src/Components/CollectionTable.js:5
  • admin/src/Components/CountryDropdown.jsx:1044
  • admin/src/Components/DatePeriodInput.js:5
  • admin/src/Components/DateTimeInput.jsx:5
  • admin/src/Components/FileInput.jsx:5
  • admin/src/Components/GroupForm.js:7
  • admin/src/Components/KeyHandoutForm.jsx:87
  • admin/src/Components/Login.jsx:6
  • admin/src/Components/Logout.jsx:5
  • admin/src/Components/MemberForm.js:7
  • admin/src/Components/MessageForm.jsx:33
  • admin/src/Components/ProductForm.jsx:52
  • admin/src/Components/RequestPasswordReset.jsx:7
  • admin/src/Components/SearchBox.jsx:3
  • admin/src/Components/SelectInput.jsx:6
  • admin/src/Components/Textarea.jsx:4
  • admin/src/Components/TextInput.jsx:5
  • admin/src/Membership/GroupAdd.js:7
  • admin/src/Membership/GroupBoxEditInfo.jsx:8
  • admin/src/Membership/GroupBox.jsx:7
  • admin/src/Membership/GroupBoxMembers.jsx:38
  • admin/src/Membership/GroupBoxPermissions.jsx:26
  • admin/src/Membership/KeyEdit.jsx:9
  • admin/src/Membership/KeyHandout.jsx:7
  • admin/src/Membership/MemberAdd.js:7
  • admin/src/Membership/MemberBoxGroups.js:29
  • admin/src/Membership/MemberBox.jsx:7
  • admin/src/Membership/MemberBoxKeys.js:40
  • admin/src/Membership/MemberBoxMemberData.jsx:8
  • admin/src/Membership/MemberBoxNewMessage.js:8
  • admin/src/Membership/MemberBoxOrders.js:24
  • admin/src/Membership/MemberBoxPermissions.js:12
  • admin/src/Membership/MemberBoxSpans.jsx:14
  • admin/src/Membership/MemberExport.jsx:4
  • admin/src/Membership/MembershipPeriodsInput.js:8
  • admin/src/Membership/SpanShow.jsx:5
  • admin/src/Messages/MessageAdd.js:7
  • admin/src/Messages/MessageShow.js:6
  • admin/src/Models/CollectionNavigation.js:3
  • admin/src/Sales/AccountingBox.jsx:5
  • admin/src/Sales/GiftCardShow.js:9
  • admin/src/Sales/OrderShow.js:11
  • admin/src/Sales/ProductAdd.js:7
  • admin/src/Sales/ProductEdit.jsx:8
  • admin/src/Settings/AccessTokenList.jsx:8
  • admin/src/Settings/ServiceTokenList.jsx:30
@emanuelen5 emanuelen5 added good first issue Good for newcomers legacy Old stuff that might need updating or refactoring labels Nov 16, 2024
@emanuelen5 emanuelen5 linked a pull request Dec 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers legacy Old stuff that might need updating or refactoring
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant