Skip to content

Commit f5833d7

Browse files
committed
Update footer.
1 parent 0f3173a commit f5833d7

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

src/app/components/home/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Home extends Component {
8585
<div className={styles.col8}>
8686
<div className={styles.p2}>
8787
<div>
88-
This is an example project of implementing Redux (Saga) with&nbsp;
88+
This is an example project of implementing Redux with&nbsp;
8989
<a
9090
href="https://www.reactpwa.com"
9191
target="_blank"

src/client.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import ReduxClient from '@pawjs/redux/client';
22
import * as AppReducers from './app/reducers';
33

44

5-
const AppInitialState = {
6-
counter: {
7-
count: 5,
8-
},
9-
};
5+
const appInitialState = {};
106

117
export default class Client {
128
trackPageView() {
@@ -31,7 +27,7 @@ export default class Client {
3127
.hooks
3228
.reduxInitialState
3329
.tapPromise('ReduxInitialState', async ({ getInitialState, setInitialState }) => {
34-
const initialState = Object.assign({}, getInitialState(), AppInitialState);
30+
const initialState = Object.assign({}, getInitialState(), appInitialState);
3531
setInitialState(initialState);
3632
});
3733

src/routes.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ export default class Routes {
107107
{
108108
name: 'apple-mobile-web-app-title',
109109
content: 'ReactPWA | Redux',
110-
},
111-
{
112-
name: 'viewport',
113-
content: 'width=device-width, initial-scale=1, maximum-scale=5.0',
114-
},
110+
}
115111
],
116112
});
117113
});

src/server.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import ReduxServer from '@pawjs/redux/server';
2-
import * as AppReducers from './app/reducers';
2+
import * as reducers from './app/reducers';
33
import React from 'react';
44
import FavIcon from './resources/img/favicon.ico';
55

6-
const AppInitialState = {
7-
counter: {
8-
count: 5,
9-
},
10-
};
6+
const appInitialState = {};
117

128

139
export default class Server {
1410
constructor({ addPlugin }) {
1511
const reduxServer = new ReduxServer({ addPlugin });
16-
reduxServer.setReducers(AppReducers);
12+
reduxServer.setReducers(reducers);
1713
addPlugin(reduxServer);
1814
}
1915

@@ -22,7 +18,7 @@ export default class Server {
2218
.hooks
2319
.reduxInitialState
2420
.tapPromise('AppInitialState', async ({ getInitialState, setInitialState }) => {
25-
const initialState = Object.assign({}, getInitialState(), AppInitialState);
21+
const initialState = Object.assign({}, getInitialState(), appInitialState);
2622
setInitialState(initialState);
2723
});
2824

0 commit comments

Comments
 (0)