kabisa / kudos-frontend

The frontend for the Kudos-o-Matic! (Mobile / Desktop)
2 stars 0 forks source link

Refactor - CreatePost component #167

Open Sandervanmaurik opened 7 months ago

Sandervanmaurik commented 7 months ago

What

This PR extracts logic and graphql queries from the CreatePost component. This component is now a functional component using hooks to execute mutations and validation logic.

Why

Functional components can use hooks, making the code much cleaner.

Code Review

Please consider the following checklist when reviewing this Pull Request.
More background and details here.