WISE-Community / plate-tectonics-boundary-explorer

React app to teach students about plate tectonics
0 stars 0 forks source link

Add table data to component states #10

Closed breity closed 2 years ago

breity commented 2 years ago

Description

Add tableData to saved component states (in componentState.studentData) so that model data can be imported to WISE Table components.

Table data should include a header row and show the most recent trial data for each location, e.g.:

[
  {size: 15, editable: false, text: 'Location'},
  {size: 10, editable: false, text: 'Correct?'},
  {size: 15, editable: false, text: 'Plate Type'},
  {size: 15, editable: false, text: 'Boundary Type'},
  {size: 25, editable: false, text: 'Your Explanation'}
],
[
  {size: 15, editable: false, text: 'East African Rift'},
  {size: 10, editable: false, text: 'Yes'},
  {size: 15, editable: false, text: 'Continental-Continental'},
  {size: 15, editable: false, text: 'Divergent'},
  {size: 25, editable: false, text: 'I think...'}
],
...