-
Notifications
You must be signed in to change notification settings - Fork 21
PM-4070 Change completeness text for admin #1503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ import styles from './ProfileCompleteness.module.scss' | |
| interface ProfileCompletenessProps { | ||
| profile: UserProfile | ||
| authProfile: UserProfile | undefined | ||
| isAdminOrTM?: boolean | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| } | ||
|
|
||
| const ProfileCompleteness: FC<ProfileCompletenessProps> = props => { | ||
|
|
@@ -42,19 +43,32 @@ const ProfileCompleteness: FC<ProfileCompletenessProps> = props => { | |
| <div className={styles.wrap}> | ||
| <strong>Profile: </strong> | ||
| {`${completed}% Complete`} | ||
| <div> | ||
| <small> | ||
| Only | ||
| {' '} | ||
| {incompleteEntries} | ||
| {' '} | ||
| left to fill. Please add | ||
| {' '} | ||
| {count === 1 ? 'it' : 'them'} | ||
| {' '} | ||
| to make your profile more discoverable. | ||
| </small> | ||
| </div> | ||
| {!props.isAdminOrTM | ||
| && ( | ||
| <div> | ||
| <small> | ||
| Only | ||
| {' '} | ||
| {incompleteEntries} | ||
| {' '} | ||
| left to fill. Please add | ||
| {' '} | ||
| {count === 1 ? 'it' : 'them'} | ||
| {' '} | ||
| to make your profile more discoverable. | ||
| </small> | ||
| </div> | ||
| )} | ||
| {props.isAdminOrTM | ||
| && ( | ||
| <div> | ||
| <small> | ||
| {incompleteEntries} | ||
| {' '} | ||
| left to fill by the member. | ||
| </small> | ||
| </div> | ||
| )} | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.