Skip to content

Commit cf89076

Browse files
committed
fix: UserList and AttestationView user links
1 parent 7867ae6 commit cf89076

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,15 @@ const AttestationView: React.FC<AttestationViewProps> = ({ attestation, setAttes
7070
<p style={{ fontSize: '15px', paddingLeft: '34px' }}>
7171
Prior to making this code contribution publicly accessible via GitHub, this code
7272
contribution was reviewed and approved by{' '}
73-
<a href={`/dashboard/admin/user/${data.reviewer.username}`}>{data.reviewer.gitAccount}</a>
74-
. As a reviewer, it was their responsibility to confirm that open sourcing this
75-
contribution followed the requirements of the company open source contribution policy.
73+
<a href={`/dashboard/user/${data.reviewer.username}`}>{data.reviewer.gitAccount}</a>. As a
74+
reviewer, it was their responsibility to confirm that open sourcing this contribution
75+
followed the requirements of the company open source contribution policy.
7676
</p>
7777
</span>
7878
<DialogContent>
7979
<p>
8080
<span>
81-
<a href={`/dashboard/admin/user/${data.reviewer.username}`}>
82-
{data.reviewer.gitAccount}
83-
</a>{' '}
81+
<a href={`/dashboard/user/${data.reviewer.username}`}>{data.reviewer.gitAccount}</a>{' '}
8482
approved this contribution{' '}
8583
<Tooltip title={moment(data.timestamp).format('dddd, MMMM Do YYYY, h:mm:ss a')} arrow>
8684
<kbd

src/ui/views/UserList/Components/UserList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ const UserList: React.FC = () => {
3232
const itemsPerPage = 5;
3333
const [searchQuery, setSearchQuery] = useState<string>('');
3434

35-
const openUser = (username: string) =>
36-
navigate(`/dashboard/admin/user/${username}`, { replace: true });
35+
const openUser = (username: string) => navigate(`/dashboard/user/${username}`, { replace: true });
3736

3837
useEffect(() => {
3938
getUsers(setIsLoading, setData, setAuth, setErrorMessage);

0 commit comments

Comments
 (0)