Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

Added: Add `bonus_points` to block view and use it in Matching Pairs #1168

Open drikusroor opened 2 days ago

drikusroor commented 2 days ago

This PR adds the bonus_points property to block view and uses it in Matching Pairs as the starting value for the total score through the newly added block slice in the zustand store.

Additionally, the MatchingPairs component has been converted to TypeScript along with adding interfaces and types and slightly improving the component use of the index, which was ambiguously seen and used as a string and number.

Resolves #1165