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/components/NextShot.tsx

29 lines
628 B

import React, {useEffect} from 'react';
import {Col, Progress} from "antd"
import socket from "../util/socket";
const NextShot = () => {
useEffect(() => {
socket.on("SENDING_NEW_TIME", (data: string) => {
});
return () => {
socket.off("SENDING_NEW_TIME");
}
});
return (
<Col className="sider" span={4}>
<h1>Tijd tot volgende shot:</h1>
<Progress type="circle"
percent={75}
strokeColor={"#304ba3"}
strokeWidth={10}/>
</Col>
);
};
export default NextShot;