network-resurrector-frontend/src/features/login/components/LoginContainer.js

24 lines
487 B
JavaScript
Raw Normal View History

2020-12-08 03:03:15 +02:00
import React from "react";
import LoginComponent from "./LoginComponent";
2020-12-16 02:34:07 +02:00
import Button from "@material-ui/core/Button";
import { useHistory } from "react-router-dom";
2020-12-08 03:03:15 +02:00
const LoginContainer = () => {
2020-12-16 02:34:07 +02:00
const history = useHistory();
const handleMove = () => {
history.push("about");
};
return (
<>
<LoginComponent />
<Button variant="contained" color="primary" onClick={handleMove}>
Move
</Button>
</>
);
2020-12-08 03:03:15 +02:00
};
export default LoginContainer;