digital-form-builder
digital-form-builder copied to clipboard
rewrite class components as functional components
Description
Some file types are still using classes instead of hooks and are not typescript files. These have been changed to typescript to improve functionality and readability. Class components have been converted to functional components. #356
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
How Has This Been Tested?
Unit tests
Checklist:
- [ ] My changes do not introduce any new linting errors
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation and versioning
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] I have rebased onto main and there are no code conflicts
- [ ] I have checked deployments are working in all environments
- [ ] I have updated the architecture diagrams as per Contribute.md
editor.tsx has a strange bug when converted to hooks.
declaration.js is being deprecated, so i dont think there is a need to convert this [762]