Skip to content

Commit

Permalink
fix: replace username with fullname
Browse files Browse the repository at this point in the history
Description: Replace username with full name
VAN-1832
  • Loading branch information
ahtesham-quraish committed Mar 26, 2024
1 parent 547681e commit 22c4c9c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/components/ProgramRecord/ProgramRecordHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ function ProgramRecordHeader({
</span>
</div>
<div className="learner-info my-3">
{
learner.full_name && (
<FormattedMessage
id="learner.full_name"
defaultMessage="{full_name} | "
description="Full name of the learner"
values={{
full_name: learner.full_name,
}}
/>
)
}
<FormattedMessage
id="learner.email"
defaultMessage="{email}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Factory } from 'rosie'; // eslint-disable-line import/no-extraneous-dep
export default Factory.define('program_record_details')
.attr('record', {
learner: {
full_name: '',
full_name: 'test',
username: 'edx',
email: '[email protected]',
},
Expand Down

0 comments on commit 22c4c9c

Please sign in to comment.