remove reset game button

This commit is contained in:
Viktor Rådberg
2023-08-26 22:29:16 +02:00
parent da43a2e212
commit a5f76a1209
2 changed files with 3 additions and 3 deletions

View File

@@ -55,6 +55,8 @@ export const SupportMe = () => {
const toggleDrawer =
(open: boolean) => (event: React.KeyboardEvent | React.MouseEvent) => {
analytics.trackEvent('toggle_support_drawer');
if (
event.type === 'keydown' &&
((event as React.KeyboardEvent).key === 'Tab' ||

View File

@@ -168,6 +168,7 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => {
};
const handleNewGame = () => {
handleResetGame();
localStorage.removeItem('players');
localStorage.removeItem('playing');
localStorage.removeItem('initialGameSettings');
@@ -292,9 +293,6 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => {
</TogglesSection>
<ButtonsSections rotation={player.settings.rotation}>
<Button rotation={player.settings.rotation} onClick={handleResetGame}>
Reset All
</Button>
<Button rotation={player.settings.rotation} onClick={handleNewGame}>
Back to Start
</Button>