Update file path

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

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

@ -7,10 +7,10 @@ import { mediaQuery } from 'lib/styles/media'
const Logo = () => {
return (
<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>
);
}
}
const Wrapper = styled.a`
display: flex;

@ -1,6 +1,6 @@
import ReactDOM from 'react-dom';
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'));
Loading…
Cancel
Save