Update file path

demo
NB 4 years ago
parent 6903112af5
commit 7ddb740cb8
  1. 1
      package.json
  2. 2
      src/components/header/Logo.tsx
  3. 2
      src/index.tsx

@ -18,6 +18,7 @@
"lib", "lib",
"README.md" "README.md"
], ],
"homepage": "https://altmshfkgudtjr.github.io/react-epub-viewer",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/altmshfkgudtjr/react-epub-viewer" "url": "https://github.com/altmshfkgudtjr/react-epub-viewer"

@ -7,7 +7,7 @@ import { mediaQuery } from 'lib/styles/media'
const Logo = () => { const Logo = () => {
return ( return (
<Wrapper href="https://github.com/altmshfkgudtjr/react-epub-viewer" target="__blank__"> <Wrapper href="https://github.com/altmshfkgudtjr/react-epub-viewer" target="__blank__">
<Img src="/images/logo.png" alt="Logo" /> <Img src="/react-epub-viewer/images/logo.png" alt="Logo" />
</Wrapper> </Wrapper>
); );
} }

@ -1,6 +1,6 @@
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import Reader from 'containers/Reader' import Reader from 'containers/Reader'
const EPUB_URL = "/files/Alices Adventures in Wonderland.epub"; const EPUB_URL = "/react-epub-viewer/files/Alices Adventures in Wonderland.epub";
ReactDOM.render(<Reader url={EPUB_URL} />, document.getElementById('root')); ReactDOM.render(<Reader url={EPUB_URL} />, document.getElementById('root'));
Loading…
Cancel
Save