-
Notifications
You must be signed in to change notification settings - Fork 253
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
ui: convert remaining class components to hooks #923
Comments
Can I work on this @mastercactapus? |
@Patil2099 absolutely! I think what would be easiest is if you had a file or two in mind from the list and I can put your name by it so others know it's being worked on. |
@Forfold We've worked on those tasks above but our names are not there yet, please add our names next to each task for people to know. Thanks :) |
This issue has been automatically marked as stale because it has not had recent activity. |
This issue has been automatically marked as stale because it has not had recent activity. |
This is an issue to track progress on converting the remaining class components to React hooks.
They should be converted in javascript for review purposes (continue to use
PropTypes
). A separate issue will be created for converting to typescript if needed.Decorators should also be removed. There is usually a corresponding hook to achieve the same functionality.
For example, a class component using
@withWidth
andprops.width
can be written as a functional component that usesconst width = useWidth()
Please keep PR size small, and run tests locally, to help speed up reviews.
app/dialogs/components/DropDownMenu.js: DropdownMenu(@KatieMSB ui: remove DropDownMenu component #1156)app/main/ErrorBoundary.js: ErrorBoundary(ui/hooks: ErrorBoundary #1844)app/main/MobileSideBar.js: MobileSideBar(@dctalbot ui: fixed mobile navigation accessibility #1170)app/util/Chips.js: PolicyChip(@dctalbot ui/hooks: chips #1231)app/util/gracefulUnmount.js: GracefulUnmounterapp/util/gracefulUnmount.js: GracefulUnmounterProviderapp/util/Options.js: Optionsui/util: delete deprecatedOptions
class #1886app/util/Query.js: Query(deprecated)The text was updated successfully, but these errors were encountered: