-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dataDownloadListActions): Ran Eslint to format code, removed unn…
…eeded var from ActionButtons component
- Loading branch information
1 parent
c748668
commit f5e8476
Showing
7 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...scovery/DiscoveryDetails/DataDownloadList/ActionButtons/DownloadUtils/DownloadJsonFile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import FileSaver from 'file-saver'; | ||
|
||
const DownloadJsonFile = (fileName: string, data: object) => { | ||
const blob = new Blob([JSON.stringify(data, null, 2)], { | ||
type: 'text/json', | ||
}); | ||
FileSaver.saveAs(blob, fileName +'.json'); | ||
} | ||
const blob = new Blob([JSON.stringify(data, null, 2)], { | ||
type: 'text/json', | ||
}); | ||
FileSaver.saveAs(blob, `${fileName}.json`); | ||
}; | ||
|
||
export default DownloadJsonFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters