diff --git a/package.json b/package.json index aed72a3..13d28bc 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "critters": "^0.0.16", "ioredis": "^5.2.3", "next": "12", - "next-redux-wrapper": "^8.0.0", "next-seo": "^5.9.0", "next-themes": "^0.2.1", "node-fetch": "^3.2.10", @@ -25,7 +24,6 @@ "react-country-flag": "^3.0.2", "react-dom": "^18.2.0", "react-toastify": "^9.0.8", - "redux": "^4.2.0", "sharp": "^0.31.1" }, "devDependencies": { diff --git a/src/pages/index.js b/src/pages/index.js index 4752bd0..e8f4f9b 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -41,6 +41,7 @@ export default class Home extends Component { showPlayerStats: true, showScoreInfo: false, showSongInfo: false, + shouldReplacePlayerInfoWithScore: false, }, }; } @@ -254,10 +255,7 @@ export default class Home extends Component { - - Do you want to show Player Stats (Current PP, global pos, - etc) - + Show player stats (Current PP, global pos, etc) @@ -268,8 +266,7 @@ export default class Home extends Component { /> - Do you want to show Score Info (Current swing values, total - score, etc) + Show score info (Current swing values, total score, etc) @@ -279,10 +276,7 @@ export default class Home extends Component { size="md" /> - - Do you want to show Song Info (Song name, bsr, song art, - etc) - + Show song info (Song name, bsr, song art, etc) this.updateValue("showSongInfo", event.target.checked) @@ -291,6 +285,21 @@ export default class Home extends Component { size="md" /> + + Hide player info to hide when a song starts (Show song info + Required) + + + this.updateValue( + "shouldReplacePlayerInfoWithScore", + event.target.checked + ) + } + checked={this.state.values.shouldReplacePlayerInfoWithScore} + size="md" + /> +