Skip to content

Commit 46befbe

Browse files
committed
maybe not broken
1 parent 08ab013 commit 46befbe

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/widgets/AutoCounter.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ class AutoCounter extends React.Component {
1717
if (this.state.alliance === "BLUE") {
1818
return (
1919
<div>
20-
<button className="inactive-red-button" onClick={() => this.handleAllianceBlue()}>
20+
<button className="active-blue-button" onClick={() => this.handleAllianceBlue()}>
2121
<div className="alliance-text">Blue</div>
2222
</button>
23-
<button className="active-blue-button" onClick={() => this.handleAllianceRed()}>
23+
<button className="inactive-red-button" onClick={() => this.handleAllianceRed()}>
2424
<div className="alliance-text">Red</div>
2525
</button>
2626
</div>
@@ -36,6 +36,17 @@ class AutoCounter extends React.Component {
3636
</button>
3737
</div>
3838
);
39+
} else {
40+
return (
41+
<div>
42+
<button className="inactive-blue-button" onClick={() => this.handleAllianceBlue()}>
43+
<div className="alliance-text">Blue</div>
44+
</button>
45+
<button className="inactive-red-button" onClick={() => this.handleAllianceRed()}>
46+
<div className="alliance-text">Red</div>
47+
</button>
48+
</div>
49+
);
3950
}
4051
}
4152

0 commit comments

Comments
 (0)