feat: download empty txt file for keystore files
This commit is contained in:
parent
49129c6a82
commit
715c815d5f
|
@ -25,7 +25,14 @@ const KeystoreFiles = () => {
|
|||
setConfirmEncryptedPassword('')
|
||||
}
|
||||
|
||||
const downloadKeyFilesHandler = () => {}
|
||||
const downloadKeyFilesHandler = () => {
|
||||
const element = document.createElement('a')
|
||||
const file = new Blob([''], { type: 'text/plain' })
|
||||
element.href = URL.createObjectURL(file)
|
||||
element.download = 'keystore_files.txt'
|
||||
document.body.appendChild(element)
|
||||
element.click()
|
||||
}
|
||||
|
||||
return (
|
||||
<YStack space={'$4'}>
|
||||
|
|
Loading…
Reference in New Issue