digital-form-builder icon indicating copy to clipboard operation
digital-form-builder copied to clipboard

rewrite class components as functional components

Open JamesBoadi opened this issue 3 years ago • 1 comments

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

JamesBoadi avatar Jul 27 '22 13:07 JamesBoadi

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]

JamesBoadi avatar Aug 01 '22 10:08 JamesBoadi