Skip to content

Commit c445266

Browse files
committed
fix: replace AttestationView a tags with UserLink components
1 parent cf89076 commit c445266

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui/views/PushDetails/components/AttestationView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { withStyles } from '@material-ui/core/styles';
1212
import { green } from '@material-ui/core/colors';
1313
import { setURLShortenerData } from '../../../services/config';
1414
import { AttestationViewProps } from '../attestation.types';
15+
import UserLink from '../../../components/UserLink/UserLink';
1516

1617
const StyledFormControlLabel = withStyles({
1718
root: {
@@ -70,15 +71,15 @@ const AttestationView: React.FC<AttestationViewProps> = ({ attestation, setAttes
7071
<p style={{ fontSize: '15px', paddingLeft: '34px' }}>
7172
Prior to making this code contribution publicly accessible via GitHub, this code
7273
contribution was reviewed and approved by{' '}
73-
<a href={`/dashboard/user/${data.reviewer.username}`}>{data.reviewer.gitAccount}</a>. As a
74+
<UserLink username={data.reviewer.username}>{data.reviewer.gitAccount}</UserLink>. As a
7475
reviewer, it was their responsibility to confirm that open sourcing this contribution
7576
followed the requirements of the company open source contribution policy.
7677
</p>
7778
</span>
7879
<DialogContent>
7980
<p>
8081
<span>
81-
<a href={`/dashboard/user/${data.reviewer.username}`}>{data.reviewer.gitAccount}</a>{' '}
82+
<UserLink username={data.reviewer.username}>{data.reviewer.gitAccount}</UserLink>{' '}
8283
approved this contribution{' '}
8384
<Tooltip title={moment(data.timestamp).format('dddd, MMMM Do YYYY, h:mm:ss a')} arrow>
8485
<kbd

0 commit comments

Comments
 (0)