Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jordus100 committed May 25, 2024
1 parent 924650a commit 56fd592
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {Link} from "react-router-dom";
import UserButtons from './User/UserButtons';

function App() {

return (
<div className="app">
<UserButtons/>
Expand Down
6 changes: 1 addition & 5 deletions src/Tournaments/TournamentDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import { useEffect } from "react";

function TournamentDetails({isAuthenticated, user, login, logout }) {
useEffect(() => {
// Create a WebSocket instance
const socket = new WebSocket('ws://localhost:3000/ws');
const socket = new WebSocket('ws://localhost:3000/ws'); // to be replaced with the actual WS endpoint address

// Event listeners
socket.addEventListener('open', () => {
console.log('Connected to WebSocket server');
});
Expand All @@ -37,8 +35,6 @@ function TournamentDetails({isAuthenticated, user, login, logout }) {
return <div>Tournament not found</div>;
}

// alert(tournament)

return (
<div className="tournamentWrapper">
<p>Szczegóły Turnieju</p>
Expand Down

0 comments on commit 56fd592

Please sign in to comment.