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.
29 lines
622 B
29 lines
622 B
4 years ago
|
import React, {useEffect} from 'react';
|
||
|
import {Col, Progress} from "antd"
|
||
|
import socket from "../util/socket";
|
||
|
|
||
|
|
||
|
const ShotsTaken = () => {
|
||
|
useEffect(() => {
|
||
|
socket.on("SENDING_NEW_TIME", (data: string) => {
|
||
|
|
||
|
});
|
||
|
|
||
|
return () => {
|
||
|
socket.off("SENDING_NEW_TIME");
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return (
|
||
|
<Col className="sider" span={4}>
|
||
|
<h1>Shots genomen:</h1>
|
||
|
<Progress type="circle"
|
||
|
percent={25}
|
||
|
strokeColor={"#304ba3"}
|
||
|
strokeWidth={10}/>
|
||
|
</Col>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default ShotsTaken;
|