Lots of reused code segments makes me think we can shove some parts of this into a react component on its own and pass the paper object and graded_files[paper.id] into the component.
Also I wonder what JS code convention is between the repeated gradedHrefData ? and a giant if {} block.
LGTM. Not tested on stage.
Lots of reused code segments makes me think we can shove some parts of this into a react component on its own and pass the
paper
object andgraded_files[paper.id]
into the component.Also I wonder what JS code convention is between the repeated gradedHrefData ? and a giant if {} block.
Originally posted by @erwang01 in https://github.com/bmun/huxley/pull/803#pullrequestreview-893176148