osuresearch / ui

Ohio State Research UI
https://osuresearch.github.io/ui/main
MIT License
6 stars 3 forks source link

Omit `onClick` from button types #84

Closed McManning closed 1 year ago

McManning commented 1 year ago

We need to be using the onPress event handler to pass down to React Aria, but developers may still accidentally call onClick (I know I have plenty of times...). Need a TypeScript type blocker for this.