Revert "undo commit"

This reverts commit 9103f67db5.
This commit is contained in:
daniel31x13
2024-11-03 03:27:52 -05:00
parent e37702aa14
commit dbd096ab76
176 changed files with 2362 additions and 9401 deletions
+6 -14
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,18 +67,10 @@ export default function AccessTokens() {
)}
</td>
<td>
{new Date(token.createdAt).toLocaleDateString("en-US", {
month: "short",
day: "numeric",
year: "numeric",
})}
{new Date(token.createdAt || "").toLocaleDateString()}
</td>
<td>
{new Date(token.expires).toLocaleDateString("en-US", {
month: "short",
day: "numeric",
year: "numeric",
})}
{new Date(token.expires || "").toLocaleDateString()}
</td>
<td>
<button
@@ -93,12 +85,12 @@ export default function AccessTokens() {
))}
</tbody>
</table>
)}
) : undefined}
</div>
{newTokenModal && (
{newTokenModal ? (
<NewTokenModal onClose={() => setNewTokenModal(false)} />
)}
) : undefined}
{revokeTokenModal && selectedToken && (
<RevokeTokenModal
onClose={() => {