Skip to content

Commit 194ff31

Browse files
author
Laurie T. Malau
committed
[pat] List view UI
1 parent 8cfd2ca commit 194ff31

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

components/dashboard/src/settings/PersonalAccessTokens.tsx

+12-9
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@ function ListAccessTokensView() {
3939

4040
return (
4141
<div>
42-
<ul>
43-
{tokens.map((t: PersonalAccessToken) => {
44-
return (
45-
<li>
46-
{t.id} - {t.name} - {t.value}
47-
</li>
48-
);
49-
})}
50-
</ul>
42+
No personal access tokens.
43+
{tokens.length > 0 && (
44+
<ul>
45+
{tokens.map((t: PersonalAccessToken) => {
46+
return (
47+
<li>
48+
{t.id} - {t.name} - {t.value}
49+
</li>
50+
);
51+
})}
52+
</ul>
53+
)}
5154
</div>
5255
);
5356
}

0 commit comments

Comments
 (0)