Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-es committed Jul 25, 2020
2 parents 3a00a01 + 724e55b commit 77dc4e3
Show file tree
Hide file tree
Showing 27 changed files with 356 additions and 113 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
14 changes: 7 additions & 7 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.0c65d534.chunk.css",
"main.js": "/static/js/main.3c0571e0.chunk.js",
"main.js.map": "/static/js/main.3c0571e0.chunk.js.map",
"main.css": "/static/css/main.62dceea5.chunk.css",
"main.js": "/static/js/main.d18c7731.chunk.js",
"main.js.map": "/static/js/main.d18c7731.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.0d1674f1.js",
"runtime-main.js.map": "/static/js/runtime-main.0d1674f1.js.map",
"static/js/2.19f702a6.chunk.js": "/static/js/2.19f702a6.chunk.js",
"static/js/2.19f702a6.chunk.js.map": "/static/js/2.19f702a6.chunk.js.map",
"static/js/2.0b7e9956.chunk.js": "/static/js/2.0b7e9956.chunk.js",
"static/js/2.0b7e9956.chunk.js.map": "/static/js/2.0b7e9956.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.9962bf5e2b6bf92690092c9ce7062c1b.js": "/precache-manifest.9962bf5e2b6bf92690092c9ce7062c1b.js",
"precache-manifest.7d9286a8267bca893daa4be3d8757036.js": "/precache-manifest.7d9286a8267bca893daa4be3d8757036.js",
"service-worker.js": "/service-worker.js",
"static/css/main.0c65d534.chunk.css.map": "/static/css/main.0c65d534.chunk.css.map"
"static/css/main.62dceea5.chunk.css.map": "/static/css/main.62dceea5.chunk.css.map"
}
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<head><link href="/static/css/main.0c65d534.chunk.css" rel="stylesheet"></head><div id="modal-window"></div><script src="/static/js/runtime-main.0d1674f1.js"></script><script src="/static/js/2.19f702a6.chunk.js"></script><script src="/static/js/main.3c0571e0.chunk.js"></script>
<head><link href="/static/css/main.62dceea5.chunk.css" rel="stylesheet"></head><div id="modal-window"></div><script src="/static/js/runtime-main.0d1674f1.js"></script><script src="/static/js/2.0b7e9956.chunk.js"></script><script src="/static/js/main.d18c7731.chunk.js"></script>
22 changes: 22 additions & 0 deletions build/precache-manifest.7d9286a8267bca893daa4be3d8757036.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "e80ef5005ed42afab9fc622853aa0831",
"url": "/index.html"
},
{
"revision": "2bff8f9f47a9c809e58c",
"url": "/static/css/main.62dceea5.chunk.css"
},
{
"revision": "e2fc79eb562202cd9ed6",
"url": "/static/js/2.0b7e9956.chunk.js"
},
{
"revision": "2bff8f9f47a9c809e58c",
"url": "/static/js/main.d18c7731.chunk.js"
},
{
"revision": "e52355ce7cf88029702e",
"url": "/static/js/runtime-main.0d1674f1.js"
}
]);
22 changes: 0 additions & 22 deletions build/precache-manifest.9962bf5e2b6bf92690092c9ce7062c1b.js

This file was deleted.

2 changes: 1 addition & 1 deletion build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.9962bf5e2b6bf92690092c9ce7062c1b.js"
"/precache-manifest.7d9286a8267bca893daa4be3d8757036.js"
);

self.addEventListener('message', (event) => {
Expand Down
1 change: 0 additions & 1 deletion build/static/css/main.0c65d534.chunk.css.map

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/static/css/main.62dceea5.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build/static/js/2.0b7e9956.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/2.0b7e9956.chunk.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/static/js/2.19f702a6.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/2.19f702a6.chunk.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions build/static/js/main.3c0571e0.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.3c0571e0.chunk.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions build/static/js/main.d18c7731.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.d18c7731.chunk.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './assets/styles/App.scss';

import Modal from './Components/Modal';
import Router from './Components/Router';
import ModalProvider from './Contexts/ModalProvider';
import React from 'react';

Expand All @@ -10,7 +10,7 @@ import React from 'react';
function App() {
return (
<ModalProvider>
<Modal />
<Router />
</ModalProvider>
);
}
Expand Down
20 changes: 2 additions & 18 deletions src/Components/Modal.js → src/Components/PanWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,16 @@ import { connectMetamask, signV4 } from '../services/ethereum'
import Logo from '../images/logo'
import { ModalContext } from '../Contexts/ModalProvider';

const Modal = () => {
const Reader = () => {
const [web3Enabled, setWeb3Enabled] = useState(false)
const [title, setTitle] = useState("nothing...")

// useEffect(() => {
// window.addEventListener("message", (event) => {
// setTitle(event.data)
// }, false);
// }, [])


// useEffect(() => {
// window.chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
// console.log("GOT Message from the content script: " +
// request.greeting);
// // sendResponse({response: "Response from background script"});
// });
// })

return (
<ModalContext.Consumer>
{(props) => (
<div id="modal" className="modal-window">
<div className="modal-body">
<div className="modal-content">
{/* <img src={logo} className="modal-content__logo"/> */}
<div className="modal-content__logo">
<Logo />
<h3>{`What people are saying...`}</h3>
Expand Down Expand Up @@ -99,7 +83,7 @@ const Modal = () => {
);
};

export default Modal;
export default Reader;


const Comment = ({ user, date, commentText }) => {
Expand Down
Loading

0 comments on commit 77dc4e3

Please sign in to comment.