Skip to content

Commit

Permalink
chore: init connections page
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Dec 14, 2021
1 parent da41ac5 commit 65dd6bc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/pages/connections.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
import { useEffect } from "react";
import { Box, Typography } from "@mui/material";
import services from "../services";

const ConnectionsPage = () => {
return <h1>Connection</h1>;
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 }}>
Connections
</Typography>
</Box>
);
};

export default ConnectionsPage;

0 comments on commit 65dd6bc

Please sign in to comment.