seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Update Button component's onClick property type #156

Closed natalynyu closed 1 year ago

natalynyu commented 1 year ago

The type for onClick was updated to accommodate providing async functions as a value for onClick. This is an attempt to fix the linter error in Course Planner:

"Promise-returning function provided to attribute where a void return was expected"

for the onClick value of the submit button in the modals.

Describe your changes

Types of changes

Checklist:

Priority:

Related Issues:

Fixes #638