Skip to content

Conversation

@aaquibnaved
Copy link

@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.

@subtainishfaq7175
Copy link

That's great @aaquibnaved

@abhishekchhugani
Copy link

abhishekchhugani commented Jun 16, 2021

Can you please merge this. I need this feature
@mattmogford @mattmogford-alcumus

@cyntler
Copy link

cyntler commented Apr 16, 2022

@abhishekchhugani I forked this repository and added changes from this pull request. Additionally, I added the ability to overwrite the component with loading renderer and no renderer (error). This fork is here and has the ability to add from npm: https://github.com/cyntler/react-doc-viewer

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants