mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
24 lines
527 B
TypeScript
24 lines
527 B
TypeScript
import { useEffect } from "react";
|
|
import { Box, Typography } from "@mui/material";
|
|
import services from "../services";
|
|
|
|
const LogPage = () => {
|
|
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>
|
|
);
|
|
};
|
|
|
|
export default LogPage;
|