For a project I'm working on, it was quite useful to be able to override the filename of the file I'm displaying using React Doc Viewer (as most of the files I'd be getting from an S3 store and the names wouldn't be that user friendly).
I created this small PR to accept an additional fileName parameter to override the filename if you'd like.
Feel free to comment and/or suggest improvements to the PR. I've made it as minimal as possible.
@mattmogford
For a project I'm working on, it was quite useful to be able to override the filename of the file I'm displaying using React Doc Viewer (as most of the files I'd be getting from an S3 store and the names wouldn't be that user friendly).
I created this small PR to accept an additional fileName parameter to override the filename if you'd like.
Feel free to comment and/or suggest improvements to the PR. I've made it as minimal as possible.