Skip to content

Commit cfe5f5c

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

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

components/dashboard/src/settings/PersonalAccessTokens.tsx

+26-11
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,32 @@ function ListAccessTokensView() {
3838
}, []);
3939

4040
return (
41-
<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>
51-
</div>
41+
<>
42+
<div className="flex items-start sm:justify-between mb-2">
43+
<div>
44+
<h3>Personal Access Tokens</h3>
45+
<h2 className="text-gray-500">Create or regenerate active personal access tokens.</h2>
46+
</div>
47+
</div>
48+
<div className="bg-gray-100 dark:bg-gray-800 rounded-xl w-full py-28 flex flex-col items-center">
49+
<h3 className="text-center pb-3 text-gray-500 dark:text-gray-400">No Personal Access Tokens (PAT)</h3>
50+
<p className="text-center pb-6 text-gray-500 text-base w-96">
51+
Generate a personal access token (PAT) for applications that need access to the Gitpod API.{" "}
52+
</p>
53+
<button>New Personal Access Token</button>
54+
</div>
55+
{tokens.length > 0 && (
56+
<ul>
57+
{tokens.map((t: PersonalAccessToken) => {
58+
return (
59+
<li>
60+
{t.id} - {t.name} - {t.value}
61+
</li>
62+
);
63+
})}
64+
</ul>
65+
)}
66+
</>
5267
);
5368
}
5469

0 commit comments

Comments
 (0)