undo commit

This commit is contained in:
daniel31x13
2024-11-03 03:25:01 -05:00
parent aeafe6e15d
commit 9103f67db5
176 changed files with 9406 additions and 2367 deletions
+14 -6
View File
@@ -40,7 +40,7 @@ export default function AccessTokens() {
{t("new_token")}
</button>
{tokens.length > 0 ? (
{tokens.length > 0 && (
<table className="table mt-2 overflow-x-auto">
<thead>
<tr>
@@ -67,10 +67,18 @@ export default function AccessTokens() {
)}
</td>
<td>
{new Date(token.createdAt || "").toLocaleDateString()}
{new Date(token.createdAt).toLocaleDateString("en-US", {
month: "short",
day: "numeric",
year: "numeric",
})}
</td>
<td>
{new Date(token.expires || "").toLocaleDateString()}
{new Date(token.expires).toLocaleDateString("en-US", {
month: "short",
day: "numeric",
year: "numeric",
})}
</td>
<td>
<button
@@ -85,12 +93,12 @@ export default function AccessTokens() {
))}
</tbody>
</table>
) : undefined}
)}
</div>
{newTokenModal ? (
{newTokenModal && (
<NewTokenModal onClose={() => setNewTokenModal(false)} />
) : undefined}
)}
{revokeTokenModal && selectedToken && (
<RevokeTokenModal
onClose={() => {