Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href={this.getDownloadURL(note.noteId)}>
- <span className="downloadAction">
- DOWNLOAD
- <img className="logoImageRight" src={require("../imgs/download.png")} alt="NotFound"/>
- </span>
- </a>
- async getDownloadURL(noteId){
- var attachmentURL;
- const note = await this.getNote(noteId);
- const {attachment} = note;
- if(attachment){
- attachmentURL = await Storage.vault.get(attachment);
- }
- return(attachmentURL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement