mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-03-02 03:50:40 +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('')
|
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 (
|
return (
|
||||||
<YStack space={'$4'}>
|
<YStack space={'$4'}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user