Skip to content

Commit

Permalink
Add Instructors to Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
shiva-menta committed Aug 19, 2023
1 parent 270168d commit 1e8223a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/review/src/components/DeepSearch/DeepSearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const ResultCategory = styled.div` // Courses, Departments, Instructors
justify-content: space-between;
`

const InstructorPreviewComponent = ({ instructor: { name, departments, quality, work, difficulty }, onClick, history }) => (
const InstructorPreviewComponent = ({ instructor: { name, desc }, onClick, history }) => (
<FlexRow
onClick={onClick}
style={{
Expand All @@ -139,11 +139,11 @@ const InstructorPreviewComponent = ({ instructor: { name, departments, quality,
opacity: .75,

}}
dangerouslySetInnerHTML={{ __html: departments?.join(", ") }}
dangerouslySetInnerHTML={{ __html: desc }}
>
</span>
</div>
<FlexRow>
{/* <FlexRow>
<RatingBox
rating={quality}
label="Quality"
Expand All @@ -156,7 +156,7 @@ const InstructorPreviewComponent = ({ instructor: { name, departments, quality,
rating={difficulty}
label="Difficulty"
/>
</FlexRow>
</FlexRow> */}
</FlexRow>
)

Expand Down

0 comments on commit 1e8223a

Please sign in to comment.