Closed steph-koopmanschap closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
mental-health-tracker | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 8:59AM (UTC) |
Looks good for me too, the only problem is replacing the chartjs library to plotly
Taking advantage of re-usable React components. The same kind code kept being repeated. Namely the navigational buttons that all have the same design. So I made a React component out of it and replaced all the repeating code with the component.
Example on how to use it:
<NavBtnDefault link="/dashboard" btnText="Go back to dashboard" />
The above component does the exact same as the below code
Added file: NavBtnDefault.js in the components folder.
This pull request does not make any functional changes to the code or the design. Its basically just a refactoring of the DRY (dont repeat yourself) principle. Everything should work and look exactly as before.