- | {token.name} |
- {token.scope === 'write' ? t('fields.scopeWrite') : t('fields.scopeRead')} |
-
- {token.ponds.length === 0
- ? t('list.allPonds')
- : token.ponds.map((pond) => pond.name).join(', ')}
- |
- {new Date(token.createdAt).toLocaleDateString()} |
-
- {token.lastUsedAt ? new Date(token.lastUsedAt).toLocaleString() : t('list.never')}
- |
- {token.expiresAt ? new Date(token.expiresAt).toLocaleDateString() : '—'} |
- {t(`list.${statusOf(token)}`)} |
-
- {!token.revokedAt && (
-
- )}
- |
+
+
+
+
+ | {t('fields.name')} |
+ {t('fields.scope')} |
+ {t('fields.ponds')} |
+ {t('list.created')} |
+ {t('list.lastUsed')} |
+ {t('list.expires')} |
+ {t('list.status')} |
+
+ {t('common:tableActions')}
+ |
- ))}
-
-
+
+
+ {tokens.map((token) => (
+
+ | {token.name} |
+ {token.scope === 'write' ? t('fields.scopeWrite') : t('fields.scopeRead')} |
+
+ {token.ponds.length === 0
+ ? t('list.allPonds')
+ : token.ponds.map((pond) => pond.name).join(', ')}
+ |
+ {new Date(token.createdAt).toLocaleDateString()} |
+
+ {token.lastUsedAt ? new Date(token.lastUsedAt).toLocaleString() : t('list.never')}
+ |
+ {token.expiresAt ? new Date(token.expiresAt).toLocaleDateString() : '—'} |
+ {t(`list.${statusOf(token)}`)} |
+
+ {!token.revokedAt && (
+
+ )}
+ |
+
+ ))}
+
+