Files
clash-verge-rev/src/pages/log.tsx
T

23 lines
527 B
TypeScript
Raw Normal View History

2021-12-13 02:27:38 +08:00
import { useEffect } from "react";
import { Box, Typography } from "@mui/material";
import services from "../services";
2021-12-08 23:36:34 +08:00
const LogPage = () => {
2021-12-13 02:27:38 +08:00
useEffect(() => {
const sourcePromise = services.getLogs(console.log);
return () => {
sourcePromise.then((src) => src.cancel());
};
}, []);
return (
<Box sx={{ width: 0.9, maxWidth: "850px", mx: "auto", mb: 2 }}>
<Typography variant="h4" component="h1" sx={{ py: 2 }}>
Logs
</Typography>
</Box>
);
2021-12-08 23:36:34 +08:00
};
export default LogPage;