Skip to content

Commit

Permalink
fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleli01 committed Dec 26, 2023
1 parent 1f1d65a commit ee88390
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions client/src/modules/Profile/Component/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Review as ReviewType } from 'common'

import Navbar from '../../Globals/Navbar'

import CourseReviews from '../../Course/Components/CourseReviews'
import { UserInfo } from './UserInfo'
import ProfileCard from './ProfileCard'
import { NoReviews } from './NoReviews'
import { PendingReviews } from './PendingReviews'

Expand Down
9 changes: 1 addition & 8 deletions client/src/modules/SearchBar/Components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ export const SearchBar = ({
// Used for "enter" key on 'Search: "query" ' button for exact search
// Sends user to /results/keyword/query+query
if (index === 0 && enter === 1) {
setInitState()

return (
<Redirect
push
Expand All @@ -187,7 +185,7 @@ export const SearchBar = ({
key={'search'}
className={
index === 0 && mouse !== 1
? 'active-class'
? 'active-class resultbutton top-resultbutton'
: 'resultbutton top-resultbutton'
}
href={`/results/keyword/${query.split(' ').join('+')}`}
Expand Down Expand Up @@ -216,11 +214,6 @@ export const SearchBar = ({
//the prop "mouse" will pass through the value of the mouse state
))

// Resets searchbar if user hit "enter" on a major in dropdown
if (enter === 1) {
setInitState()
}

results.push(subjectList)

let professorList: JSX.Element[] = []
Expand Down

0 comments on commit ee88390

Please sign in to comment.