microsoft / fluentui-contrib

Monorepo for contributor extension packages to Fluent UI
MIT License
29 stars 31 forks source link

feat(react-draggable-dialog): split component logic into separate hooks #106

Closed marcosmoura closed 7 months ago

marcosmoura commented 7 months ago

This PR doesn't add any logic but splits the component into separate state hooks. This change is needed to make it easy to test the state that goes into the components. Some components are renderless, which makes it impossible to test the state integrity without this change.