Frontend: Create badge component and implement the giving badge functionality to Profile Page
Closed this issue · 3 comments
Create badge component and implement the giving badge functionality to Profile Page. Users should be able to select the badge to give the desired users. The related owner, event and type informations should be sent to /api/badges/ endpoint of the backend.
I created the badge pictures folder and shared it with android and backend team via our whatsapp group.
Initially I was working on frontend-badge branch. Initial commit for creating the badge component is made here to the frontend-comment branch. This commit is lack of the Post request to be sent to backend.
Final completed version is shared as a code snippets via google meet before the demo night. Since we were running out of time we thought it would be more fast and error free instead of merging seperate branch. The final version of the code of giving the badge to user can be found in this commit
under the code/frontend/src/pages/UserProfile.js.