Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
940 B
40 lines
940 B
import React, {useEffect, useState} from 'react';
|
|
import './App.css';
|
|
import logo from "./via-logo.svg"
|
|
import {Row} from "antd"
|
|
import socket from "./util/socket";
|
|
import NextShot from "./components/NextShot";
|
|
import ShotsTaken from "./components/ShotsTaken";
|
|
import Feed from "./components/Feed";
|
|
|
|
|
|
const App = () => {
|
|
|
|
useEffect(() => {
|
|
socket.on('connected', () => {
|
|
console.log('connected :)')
|
|
});
|
|
|
|
return () => {
|
|
socket.off("SENDING_NEW_TIME");
|
|
socket.off("connection");
|
|
}
|
|
});
|
|
|
|
return (
|
|
<>
|
|
<section className="content">
|
|
<Row>
|
|
<NextShot/>
|
|
<Feed/>
|
|
<ShotsTaken/>
|
|
</Row>
|
|
</section>
|
|
<footer>
|
|
<img src={logo} className="via-logo" alt="logo"/>
|
|
</footer>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default App;
|
|
|