Skip to content

Commit

Permalink
bugfix(con): display mentors occupation in their profile (#766)
Browse files Browse the repository at this point in the history
* Display mentors occupation section in their profile

* Add comment

* Add comment

---------

Co-authored-by: Kate <kateryna@redi-school.org>
  • Loading branch information
katamatata and Kate authored Aug 18, 2023
1 parent 98ebb6b commit 901fd31
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
17 changes: 10 additions & 7 deletions apps/redi-connect/src/pages/app/me/Me.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,16 @@ function Me() {
</Element>
)}

{/* <Element className="block-separator">
<Columns>
<Columns.Column size={6}>
<EditableOccupation />
</Columns.Column>
</Columns>
</Element> */}
{/* When ReDI course is re-implemented, remove userIsMentor condition from here & EditableOccupation component above */}
{userIsMentor && (
<Element className="block-separator">
<Columns>
<Columns.Column size={6}>
<EditableOccupation />
</Columns.Column>
</Columns>
</Element>
)}
</LoggedIn>
)
}
Expand Down
12 changes: 7 additions & 5 deletions apps/redi-connect/src/pages/app/profile/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
MentorshipMatchStatus,
useLoadMyProfileQuery,
UserType
UserType,
} from '@talent-connect/data-access'
import {
Button,
Heading,
Icon
Icon,
} from '@talent-connect/shared-atomic-design-components'
import { REDI_LOCATION_NAMES } from '@talent-connect/shared-config'
import { Columns, Content, Element, Notification } from 'react-bulma-components'
Expand All @@ -18,12 +18,13 @@ import {
ReadLanguages,
ReadMentoringTopics,
ReadOccupation,
ReadPersonalDetail, ReadSocialMedia
ReadPersonalDetail,
ReadSocialMedia,
} from '../../../components/molecules'
import {
ApplyForMentor,
Avatar,
ConfirmMentorship
ConfirmMentorship,
} from '../../../components/organisms'
import DeclineMentorshipButton from '../../../components/organisms/DeclineMentorshipButton'
import { LoggedIn } from '../../../components/templates'
Expand Down Expand Up @@ -212,7 +213,8 @@ function Profile() {
)}

{profile.mentor_occupation && (
// || profile.mentee_occupationCategoryId)
// When ReDI course is re-implemented, uncomment this & remove ReadOccupation component above
// || profile.mentee_occupationCategoryId)
<Element className="block-separator">
<Columns>
<Columns.Column>
Expand Down

0 comments on commit 901fd31

Please sign in to comment.