File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/Components/RoverDetails Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ function RoverDetails() {
3939 < span id = "scroll-message" > Scroll to pick a rover!</ span >
4040 < div id = "rover-button-container" className = "button-carousel" >
4141 < button
42- className = { rover === "spirit" ? "selected-rover" : "not-selected" }
42+ className = {
43+ selectedRover === "spirit" ? "selected-rover" : "not-selected"
44+ }
4345 id = "spirit-button"
4446 key = "spirit-button"
4547 onClick = { ( ) => handleClick ( "spirit-button" ) }
@@ -48,7 +50,9 @@ function RoverDetails() {
4850 < span > SPIRIT</ span >
4951 </ button >
5052 < button
51- className = { rover === "curiosity" ? "selected-rover" : "not-selected" }
53+ className = {
54+ selectedRover === "curiosity" ? "selected-rover" : "not-selected"
55+ }
5256 id = "curiosity-button"
5357 key = "curiosity-button"
5458 >
@@ -60,7 +64,7 @@ function RoverDetails() {
6064 </ button >
6165 < button
6266 className = {
63- rover === "opportunity" ? "selected-rover" : "not-selected"
67+ selectedRover === "opportunity" ? "selected-rover" : "not-selected"
6468 }
6569 id = "opportunity-button"
6670 key = "opportunity-button"
You can’t perform that action at this time.
0 commit comments