diff --git a/src/App.scss b/src/App.scss
index 6b5a830..10714a8 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -96,4 +96,12 @@ body {
}
border: none;
}
+ .lineups.nav {
+ .nav-item button[role=tab][aria-selected=true]{
+ font-weight: 900;
+ &:before, &:after{
+ content: "*";
+ }
+ }
+ }
}
diff --git a/src/components/GameStateDisplay.js b/src/components/GameStateDisplay.js
index 2fc9d99..da35032 100644
--- a/src/components/GameStateDisplay.js
+++ b/src/components/GameStateDisplay.js
@@ -13,7 +13,7 @@ function Inning({inning, isTopHalf}){
)
}
-function GameStateDisplay({inning, bases, isTopHalf, outs, count, awayScore, homeScore, isFinal }){
+function GameStateDisplay({inning, bases, isTopHalf, outs, count, score, isFinal }){
return (
@@ -24,9 +24,9 @@ function GameStateDisplay({inning, bases, isTopHalf, outs, count, awayScore, ho
{count.balls}-{count.strikes}
{outs} outs
-
-
-
+
+
+
@@ -35,8 +35,8 @@ function GameStateDisplay({inning, bases, isTopHalf, outs, count, awayScore, ho
)}
{isFinal ? "FINAL!" : ""}
- Away Score: {awayScore}
- Home Score: {homeScore}
+ Away Score: {score.away}
+ Home Score: {score.home}
);
diff --git a/src/utils/inningUtils.js b/src/utils/inningUtils.js
new file mode 100644
index 0000000..0f03055
--- /dev/null
+++ b/src/utils/inningUtils.js
@@ -0,0 +1,7 @@
+const encodeInning = (inningNumber, isTopHalf) =>
+ inningNumber * 10 + (isTopHalf ? 1 : 2);
+
+const decodeInning = (inningInt) => ({
+ inningNumber: Math.floor(inningInt / 10),
+ isTopHalf: inningInt % 10 === 1,
+});
\ No newline at end of file