Skip to content

Commit

Permalink
Removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagi132 committed May 30, 2024
1 parent bc953bd commit 2c307dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Lobby.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import './Lobby.css';
import { Link, useLocation, useNavigate } from 'react-router-dom';
import { Link, useNavigate } from 'react-router-dom';
import io from 'socket.io-client';

const { num } = require('./difiiculty.js');
Expand All @@ -11,7 +11,7 @@ function Lobby() {
const [socket, setSocket] = useState(null);

// Retrieve the username from the location state or local storage
const [username, setUsername] = useState(localStorage.getItem('username') || ''); // Get the username from the location state
const [username] = useState(localStorage.getItem('username') || ''); // Get the username from the location state


useEffect(() => {
Expand Down Expand Up @@ -84,7 +84,6 @@ function Lobby() {
<div className="lobby-background">
<header className="game-lobby-header">
<h1 className="game-lobby-title">GAME LOBBY</h1>
<h2></h2>
</header>

<div className="player-section">
Expand Down

0 comments on commit 2c307dd

Please sign in to comment.