[UI] Convert `Navigator.js` from class based component to functional component
#8798 aperta il 16 set 2023
Metriche repository
- Star
- (10.013 stelle)
- Metriche merge PR
- (Merge medio 22g 16h) (332 PR mergiate in 30 g)
Descrizione
Current Behavior
Navigator.js is a class-based component.
Desired Behavior
Navigator.js should be a functional component.
Implementation
Convert all the Class-based components to new updated functional components. It is important here to convert a class-based component to a functional component you may need to convert some functions as well. Check if the function is used in other components or not.
Also, make sure to use the hooks while converting them. For example, you need to covert withNotify with useNotification, useRouter hook. Please check if a hook for functional components is available and use that.
Here is a quick blog that will help you get started with : Link
Contributor Guides and Handbook
- 🎨 Wireframes and designs for Meshery UI in Figma (open invite)
- 🖥 Contributing to Meshery UI
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack