diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-11 14:48:42 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:37 +0200 |
| commit | d7512ace72448242b392299cf459c9c72c8dbee5 (patch) | |
| tree | 37ce113d5d47440139bfe357e9ad547063cd44f7 /src/components/navigation/LogoutButton.js | |
| parent | 737ce62470a13ae153788207719396e107252955 (diff) | |
Get Google authentication flow working
Diffstat (limited to 'src/components/navigation/LogoutButton.js')
| -rw-r--r-- | src/components/navigation/LogoutButton.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/navigation/LogoutButton.js b/src/components/navigation/LogoutButton.js new file mode 100644 index 00000000..e2da7751 --- /dev/null +++ b/src/components/navigation/LogoutButton.js @@ -0,0 +1,16 @@ +import PropTypes from "prop-types"; +import React from "react"; +import {Link} from "react-router-dom"; +import "./LogoutButton.css"; + +const LogoutButton = ({onLogout}) => ( + <Link className="logout" title="Sign out" to="#" onClick={onLogout}> + <span className="fa fa-lg fa-power-off"/> + </Link> +); + +LogoutButton.propTypes = { + onLogout: PropTypes.func.isRequired, +}; + +export default LogoutButton; |
