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.
centurion/frontend/src/App.tsx

41 lines
940 B

4 years ago
import React, {useEffect, useState} from 'react';
4 years ago
import './App.css';
import logo from "./via-logo.svg"
4 years ago
import {Row} from "antd"
import socket from "./util/socket";
import NextShot from "./components/NextShot";
import ShotsTaken from "./components/ShotsTaken";
import Feed from "./components/Feed";
4 years ago
const App = () => {
4 years ago
useEffect(() => {
socket.on('connected', () => {
console.log('connected :)')
});
4 years ago
4 years ago
return () => {
socket.off("SENDING_NEW_TIME");
socket.off("connection");
}
});
4 years ago
return (
4 years ago
<>
4 years ago
<section className="content">
<Row>
4 years ago
<NextShot/>
<Feed/>
<ShotsTaken/>
4 years ago
</Row>
</section>
<footer>
<img src={logo} className="via-logo" alt="logo"/>
</footer>
4 years ago
</>
4 years ago
);
};
export default App;