Rename local variable from "active" to "grid_active"
authorCarl Worth <cworth@cworth.org>
Sun, 21 Jun 2020 16:16:29 +0000 (09:16 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 21 Jun 2020 16:16:29 +0000 (09:16 -0700)
commitf44e7e5f69e19ceb1909f371eb88e44e736990ee
tree5c4d3665bc1635b9c0701755ff238ba374b5f2b5
parentc6ffca52b75480ad51ff1907a990b02f64885476
Rename local variable from "active" to "grid_active"

There is an "active" property up and down our component stack, (at the
board level, whether it's the current players turn; further at the
mini-grid level, whether it's a legal mini-grid; further still at the
square level, whether the square is unoccupied). It's clear enough to
uses a props name of "active" at each level.

But when using a local variable to compute the child's "active" prop
while in a current component with its own "active" prop, this can get
confusing.

So, at the board level, use a local variable of "grid_active" to
compute the "active" prop for the child grid.
scribe/scribe.jsx