diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-28 14:12:41 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-29 21:18:40 +0100 |
| commit | b14ba802ade3f724edfa6b2b09b643faa583f911 (patch) | |
| tree | 20ea770c9e63d9c357dc2b9fbe2c70d5c4d73d9f /frontend/src/components/navigation/LogoutButton.js | |
| parent | 609411bd23d880fe8c901a6b67852048f8a7b2e4 (diff) | |
Migrate to Reactstrap for Navbar
Diffstat (limited to 'frontend/src/components/navigation/LogoutButton.js')
| -rw-r--r-- | frontend/src/components/navigation/LogoutButton.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/navigation/LogoutButton.js b/frontend/src/components/navigation/LogoutButton.js index e3de2ec7..78b02b44 100644 --- a/frontend/src/components/navigation/LogoutButton.js +++ b/frontend/src/components/navigation/LogoutButton.js @@ -2,11 +2,12 @@ import PropTypes from 'prop-types' import React from 'react' import FontAwesome from 'react-fontawesome' import { Link } from 'react-router-dom' +import { NavLink } from 'reactstrap' const LogoutButton = ({ onLogout }) => ( - <Link className="logout nav-link" title="Sign out" to="#" onClick={onLogout}> + <NavLink tag={Link} className="logout" title="Sign out" to="#" onClick={onLogout}> <FontAwesome name="power-off" size="lg" /> - </Link> + </NavLink> ) LogoutButton.propTypes = { |
