mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-13 14:46:21 +00:00
remove reset game button
This commit is contained in:
@@ -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' ||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user