File tree 6 files changed +10
-4
lines changed
6 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ const rootReducer = combineReducers(Reducers);
13
13
const persistedReducer = persistReducer ( persistConfig , rootReducer ) ;
14
14
export const store = createStore ( persistedReducer , applyMiddleware ( thunk ) ) ;
15
15
export const persistVar = persistStore ( store ) ;
16
- export const getStateFromSelector = selector => useSelector ( cs => cs [ selector ] ) ;
16
+ export const getStateFromSelector = selector => useSelector ( cs => cs [ selector ] ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import './index.css';
4
4
import App from './App' ;
5
5
import reportWebVitals from './reportWebVitals' ;
6
6
import { Provider } from "react-redux" ;
7
- import { persistVar , store } from "./Redux /store" ;
7
+ import { persistVar , store } from "./redux /store" ;
8
8
import { PersistGate } from 'redux-persist/integration/react' ;
9
9
const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) ) ;
10
10
root . render (
Original file line number Diff line number Diff line change 5
5
* */
6
6
import React from 'react' ;
7
7
import { Helmet } from 'react-helmet' ;
8
- import { getStateFromSelector } from "../Redux/store" ;
9
- import { CURRENT_SESSION_STATE_REDUCER } from "../Redux/reducers" ;
8
+ import { getStateFromSelector } from "../redux/store" ;
9
+ import { CURRENT_SESSION_STATE_REDUCER } from "../redux/reducers" ;
10
+ // import {setCurrentPageTitle} from "../redux/action";
11
+ // import {useDispatch} from "react-redux";
10
12
11
13
const Application = ( ) => {
14
+ // const ds = useDispatch()
12
15
const { pageTitle, pageName} = getStateFromSelector ( CURRENT_SESSION_STATE_REDUCER ) ;
13
16
return (
14
17
< >
15
18
< Helmet >
16
19
< title > { pageTitle } </ title >
17
20
</ Helmet >
18
21
< h1 > This is { pageName } </ h1 >
22
+ { /*<button title={"Click me"} onClick={()=>ds(setCurrentPageTitle("CHKCINF"))}>*/ }
23
+ { /* <h4>Click me</h4>*/ }
24
+ { /*</button>*/ }
19
25
</ >
20
26
) ;
21
27
} ;
You can’t perform that action at this time.
0 commit comments