mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-13 06:36:20 +00:00
remove reset game button
This commit is contained in:
@@ -55,6 +55,8 @@ export const SupportMe = () => {
|
|||||||
|
|
||||||
const toggleDrawer =
|
const toggleDrawer =
|
||||||
(open: boolean) => (event: React.KeyboardEvent | React.MouseEvent) => {
|
(open: boolean) => (event: React.KeyboardEvent | React.MouseEvent) => {
|
||||||
|
analytics.trackEvent('toggle_support_drawer');
|
||||||
|
|
||||||
if (
|
if (
|
||||||
event.type === 'keydown' &&
|
event.type === 'keydown' &&
|
||||||
((event as React.KeyboardEvent).key === 'Tab' ||
|
((event as React.KeyboardEvent).key === 'Tab' ||
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleNewGame = () => {
|
const handleNewGame = () => {
|
||||||
|
handleResetGame();
|
||||||
localStorage.removeItem('players');
|
localStorage.removeItem('players');
|
||||||
localStorage.removeItem('playing');
|
localStorage.removeItem('playing');
|
||||||
localStorage.removeItem('initialGameSettings');
|
localStorage.removeItem('initialGameSettings');
|
||||||
@@ -292,9 +293,6 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => {
|
|||||||
</TogglesSection>
|
</TogglesSection>
|
||||||
|
|
||||||
<ButtonsSections rotation={player.settings.rotation}>
|
<ButtonsSections rotation={player.settings.rotation}>
|
||||||
<Button rotation={player.settings.rotation} onClick={handleResetGame}>
|
|
||||||
Reset All
|
|
||||||
</Button>
|
|
||||||
<Button rotation={player.settings.rotation} onClick={handleNewGame}>
|
<Button rotation={player.settings.rotation} onClick={handleNewGame}>
|
||||||
Back to Start
|
Back to Start
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user