mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-10 02:24:13 +00:00
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…
x
Reference in New Issue
Block a user