Pass Additional props remove localstorage related code for storing data and username from App.tsx to index.tsx (#2057)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Aakansha Doshi
2020-08-26 16:15:54 +05:30
committed by GitHub
parent 0e0a695e81
commit 4718c31da5
6 changed files with 102 additions and 54 deletions

View File

@@ -24,8 +24,6 @@ class Portal {
this.socket.on("init-room", () => {
if (this.socket) {
this.socket.emit("join-room", this.roomID);
this.app.restoreUserName();
}
});
this.socket.on("new-user", async (_socketId: string) => {