chore: perfect type definition (#940)
This commit is contained in:
parent
b346bd9b83
commit
5e0540077a
25 changed files with 97 additions and 70 deletions
|
|
@ -79,7 +79,7 @@ const SecretKeyModal = ({
|
|||
return `${token.slice(0, 3)}...${token.slice(-20)}`
|
||||
}
|
||||
|
||||
const formatDate = (timestamp: any) => {
|
||||
const formatDate = (timestamp: string) => {
|
||||
if (locale === 'en')
|
||||
return new Intl.DateTimeFormat('en-US', { year: 'numeric', month: 'long', day: 'numeric' }).format((+timestamp) * 1000)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue