Skip to content

Commit

Permalink
Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
satsen committed Jul 9, 2022
1 parent 6ad3119 commit 4bef13f
Show file tree
Hide file tree
Showing 48 changed files with 36,925 additions and 36,925 deletions.
70,246 changes: 35,123 additions & 35,123 deletions package-lock.json

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"name": "Satergo-wallet",
"version": "0.1.0",
"private": true,
"dependencies": {
"classnames": "^2.2.6",
"lodash": "^4.17.15",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-ga": "^2.7.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.1",
"sass": "^1.49.7"
},
"repository": {
"type": "git",
"url": "https://github.com/Satergo"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"name": "satergo.com",
"version": "1.0.0",
"private": true,
"dependencies": {
"classnames": "^2.2.6",
"lodash": "^4.17.15",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-ga": "^2.7.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.1",
"sass": "^1.49.7"
},
"repository": {
"type": "git",
"url": "https://github.com/Satergo"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
32 changes: 16 additions & 16 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<meta name="description" content="The desktop wallet for the Ergo cryptocurrency.">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
<meta charset="utf-8">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<meta name="description" content="The desktop wallet for the Ergo cryptocurrency.">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Satergo</title>
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Satergo</title>
</head>
<body class="has-animations">
<noscript><meta http-equiv="refresh" content="0;url=noscript.html"></noscript>
<div id="root" class="body-wrap"></div>
<noscript><meta http-equiv="refresh" content="0;url=noscript.html"></noscript>
<div id="root" class="body-wrap"></div>
</body>
</html>
36 changes: 18 additions & 18 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ import Home from './views/Home';

const App = () => {

const childRef = useRef();
let location = useLocation();

useEffect(() => {
document.body.classList.add('is-loaded')
childRef.current.init();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [location]);

return (
<ScrollReveal
ref={childRef}
children={() => (
<Switch>
<AppRoute exact path="/" component={Home} layout={LayoutDefault} />
</Switch>
)} />
);
const childRef = useRef();
let location = useLocation();

useEffect(() => {
document.body.classList.add('is-loaded')
childRef.current.init();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [location]);

return (
<ScrollReveal
ref={childRef}
children={() => (
<Switch>
<AppRoute exact path="/" component={Home} layout={LayoutDefault} />
</Switch>
)} />
);
}

export default App;
16 changes: 8 additions & 8 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import App from './App';
const history = createMemoryHistory();

it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(
<Router history={history}>
<App />
</Router>,
div
);
ReactDOM.unmountComponentAtNode(div);
const div = document.createElement('div');
ReactDOM.render(
<Router history={history}>
<App />
</Router>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
Loading

0 comments on commit 4bef13f

Please sign in to comment.