Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
#765 - fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Jul 20, 2022
2 parents f27ef07 + 701518d commit fa8a58b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* This file is part of NER's PM Dashboard and licensed under GNU AGPLv3.
* See the LICENSE file in the repository root folder for details.
*/


.dropdownItems {
padding-left: 1.5em !important;
background-color: transparent;
border: none;
}

.UserMenuItem {
padding: 0 !important;
}
17 changes: 5 additions & 12 deletions src/frontend/layouts/nav-top-bar/nav-user-menu/nav-user-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faUserCircle } from '@fortawesome/free-solid-svg-icons';
import { useAuth } from '../../../../services/auth.hooks';
import { routes } from '../../../../shared/routes';

const styles = {
logoutButton: {
backgroundColor: 'transparent',
border: 'none'
}
};
import styles from './nav-user-menu.module.css';

const NavUserMenu: React.FC = () => {
const history = useHistory();
Expand All @@ -31,12 +25,12 @@ const NavUserMenu: React.FC = () => {
>
<NavDropdown.ItemText>Logged in as: {auth.user?.emailId}</NavDropdown.ItemText>
<NavDropdown.Divider />
<NavDropdown.Item as="div">
<Link className="nav-link p-0" role="button" to="/settings">
<NavDropdown.Item className={styles.UserMenuItem}>
<Link className={'nav-link ' + styles.dropdownItems} role="button" to={routes.SETTINGS}>
Settings
</Link>
</NavDropdown.Item>
<NavDropdown.Item as="div">
<NavDropdown.Item className={styles.UserMenuItem}>
<GoogleLogout
clientId={process.env.REACT_APP_GOOGLE_AUTH_CLIENT_ID!}
//jsSrc={'accounts.google.com/gsi/client'}
Expand All @@ -46,8 +40,7 @@ const NavUserMenu: React.FC = () => {
}}
render={(renderProps) => (
<button
className={'nav-link p-0 m-0 '}
style={styles.logoutButton}
className={'nav-link ' + styles.dropdownItems}
onClick={renderProps.onClick}
disabled={renderProps.disabled}
>
Expand Down

0 comments on commit fa8a58b

Please sign in to comment.