download cert to uyser
This commit is contained in:
@@ -199,19 +199,7 @@ function RemoveDedupItem({
|
||||
}
|
||||
}
|
||||
|
||||
const getDaysRemaining = () => {
|
||||
if (!lock?.ttl) return null
|
||||
|
||||
return new Date(lock.ttl * 1000).toLocaleString('pt-BR', {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: '2-digit'
|
||||
})
|
||||
}
|
||||
|
||||
const daysRemaining = getDaysRemaining()
|
||||
const daysRemaining = lock?.ttl ? getDaysRemaining(lock.ttl) : null
|
||||
|
||||
return (
|
||||
<AlertDialog open={open} onOpenChange={setOpen}>
|
||||
@@ -254,6 +242,16 @@ function RemoveDedupItem({
|
||||
)
|
||||
}
|
||||
|
||||
const getDaysRemaining = (ttl: number) => {
|
||||
return new Date(ttl * 1000).toLocaleString('pt-BR', {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: '2-digit'
|
||||
})
|
||||
}
|
||||
|
||||
function CancelItem({
|
||||
id,
|
||||
cancelPolicy,
|
||||
|
||||
Reference in New Issue
Block a user