chore: build
This commit is contained in:
@@ -75,21 +75,12 @@ export function Projects() {
|
||||
}
|
||||
}
|
||||
|
||||
// Échéance affichée : temps restant, ou date de suppression si suspendu.
|
||||
const deadline = (p: Project) => {
|
||||
if (p.status === 'suspended') {
|
||||
return (
|
||||
<Text color="orange.500" fontSize="sm">
|
||||
Suppression le {formatDate(p.delete_at)}
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<Text fontSize="sm">
|
||||
{formatDate(p.expires_at)} · {timeRemaining(p.expires_at)}
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
// Échéance affichée : date de suppression et temps restant.
|
||||
const deadline = (p: Project) => (
|
||||
<Text fontSize="sm">
|
||||
{formatDate(p.expires_at)} · {timeRemaining(p.expires_at)}
|
||||
</Text>
|
||||
)
|
||||
|
||||
return (
|
||||
<Box p={{ base: 4, md: 8 }}>
|
||||
@@ -122,7 +113,7 @@ export function Projects() {
|
||||
<Tbody>
|
||||
{projects.map((p) => {
|
||||
const locked = busy === p.id
|
||||
const canExtend = p.status === 'ready' || p.status === 'provisioning' || p.status === 'suspended'
|
||||
const canExtend = p.status === 'ready' || p.status === 'provisioning'
|
||||
return (
|
||||
<Tr key={p.id}>
|
||||
<Td>{p.client_name}</Td>
|
||||
|
||||
Reference in New Issue
Block a user