Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
coderatomy committed Feb 16, 2024
1 parent 0bc115e commit 6416e8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions zubhub_frontend/zubhub/src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function NavBar(props) {
const [searchType, setSearchType] = useState(getQueryParams(window.location.href).get('type') || SearchType.PROJECTS);
const formRef = useRef();
const token = useSelector(state => state.auth.token);
const pathname = props.location?.pathname
const hideSearchAndActions = pathname === '/signup' || pathname === '/login';

const [state, setState] = React.useState({
Expand Down Expand Up @@ -355,11 +356,11 @@ function NavBar(props) {
</Box>
)}
</Hidden>

<AvatarButton navigate={props.navigate} />
</div>
)}
</Toolbar>
{!hideSearchAndActions && open_search_form ? (
{open_search_form ? (
<ClickAwayListener onClickAway={e => handleSetState(closeSearchFormOrIgnore(e))}>
<form
action="/search"
Expand Down Expand Up @@ -460,4 +461,4 @@ const mapDispatchToProps = dispatch => {
};
};

export default connect(mapStateToProps, mapDispatchToProps)(NavBar);
export default connect(mapStateToProps, mapDispatchToProps)(NavBar);
1 change: 0 additions & 1 deletion zubhub_frontend/zubhub/src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ export {
PreviewActivity,
Pill,
ProtectedRoute,
SessionExpireModal,
CustomErrorMessage,
};

0 comments on commit 6416e8a

Please sign in to comment.