tangled
alpha
login
or
join now
bwc9876.dev
/
manhunt-app
0
fork
atom
Live location tracking and playback for the game "manhunt"
0
fork
atom
overview
issues
pulls
1
pipelines
Loading Cover for Start Game
bwc9876.dev
2 weeks ago
fc568f1d
6ad701eb
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+8
-5
1 changed file
expand all
collapse all
unified
split
frontend
src
components
MenuScreen.tsx
+8
-5
frontend/src/components/MenuScreen.tsx
···
42
42
};
43
43
}, [setProfile]);
44
44
45
45
-
const startLobby = useCallback(() => {
46
46
-
commands.startLobby(null, defaultSettings());
47
47
-
}, []);
45
45
+
const startLobby = () => {
46
46
+
setLoadingCover(true);
47
47
+
commands.startLobby(null, defaultSettings()).finally(() => {
48
48
+
setLoadingCover(false);
49
49
+
});
50
50
+
};
48
51
49
49
-
const joinLobby = useCallback(() => {
52
52
+
const joinLobby = () => {
50
53
setLoadingCover(true);
51
54
const code = window.prompt("Enter join code");
52
55
if (!code) {
···
69
72
.catch(() => {
70
73
setLoadingCover(false);
71
74
});
72
72
-
}, []);
75
75
+
};
73
76
74
77
const onEditName = () => {
75
78
const newName = window.prompt("Enter New Name");