the-programmers-hangout / website

🌳 TPH website
https://theprogrammershangout.com
MIT License
102 stars 67 forks source link

Types: use generated GraphQL types everywhere #76

Open veksen opened 5 years ago

veksen commented 5 years ago

We've implemented generated types from the GraphQL endpoint, but they are not used everywhere:

example of implementation: https://github.com/the-programmers-hangout/website/blob/adb2a925bae1246c08da79a0c59336d2884ccbc6/src/pages/rules.tsx#L7

example where it's missing: https://github.com/the-programmers-hangout/website/blob/adb2a925bae1246c08da79a0c59336d2884ccbc6/src/components/ResourceHeader/index.tsx#L8-L16