File tree Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const StyledMenu = withStyles({
50
50
} ) ( props => (
51
51
< Menu
52
52
elevation = { 0 }
53
- getContentAnchorEl = { null }
53
+ // getContentAnchorEl={null}
54
54
anchorOrigin = { {
55
55
vertical : 'bottom' ,
56
56
horizontal : 'center'
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ export const App = (): JSX.Element => {
18
18
// const [state, dispatch] = useReducer(reducer, initialState);
19
19
const state = useSelector ( store => store . appState ) ;
20
20
const dispatch = useDispatch ( ) ;
21
- console . log ( "loaded right away" )
22
21
// checks if user is signed in as guest or actual user and changes loggedIn boolean accordingly
23
22
useEffect ( ( ) => {
24
23
if ( window . localStorage . getItem ( 'ssid' ) !== 'guest' ) {
@@ -42,7 +41,7 @@ export const App = (): JSX.Element => {
42
41
// type: 'SET INITIAL STATE',
43
42
// payload: project
44
43
// });
45
- dispatch ( setInitialState ( { project} ) )
44
+ dispatch ( setInitialState ( project ) )
46
45
}
47
46
} ) ;
48
47
} else {
@@ -60,7 +59,7 @@ export const App = (): JSX.Element => {
60
59
// type: 'SET INITIAL STATE',
61
60
// payload: project
62
61
// });
63
- dispatch ( setInitialState ( { project} ) )
62
+ dispatch ( setInitialState ( project ) )
64
63
} else {
65
64
console . log (
66
65
'No user project found in localforage, setting initial state blank'
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const HTMLPanel = (props): JSX.Element => {
111
111
// type: 'ADD ELEMENT',
112
112
// payload: newElement
113
113
// });
114
- dispatch ( addElement ( { newElement} ) )
114
+ dispatch ( addElement ( newElement ) )
115
115
setCurrentID ( currentID + 1 ) ;
116
116
setTag ( '' ) ;
117
117
setName ( '' ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { DeleteButtons } from '../../interfaces/Interfaces';
3
3
import Modal from '@mui/material/Modal' ;
4
4
import StateContext from '../../context/context' ;
5
5
import { useDispatch } from 'react-redux' ;
6
- import { changeFocus , addChild , deleteChild } from '../../redux/reducers/slice/appStateSlice' ;
6
+ import { deleteChild } from '../../redux/reducers/slice/appStateSlice' ;
7
7
8
8
function DeleteButton ( { id, name } : DeleteButtons ) {
9
9
// const [state, dispatch] = useContext(StateContext);
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const StyledMenu = withStyles({
62
62
} ) ( props => (
63
63
< Menu
64
64
elevation = { 0 }
65
- getContentAnchorEl = { null }
65
+ // getContentAnchorEl={null}
66
66
anchorOrigin = { {
67
67
vertical : 'bottom' ,
68
68
horizontal : 'center'
Original file line number Diff line number Diff line change @@ -4,7 +4,32 @@ import { configureStore } from '@reduxjs/toolkit';
4
4
import rootReducer from './reducers/rootReducer' ;
5
5
6
6
const store = configureStore ( {
7
- reducer : rootReducer
7
+ reducer : rootReducer ,
8
+ middleware : getDefaultMiddleware => {
9
+ const ignoredPaths = [ ] ;
10
+
11
+ for ( let i = 0 ; i < 21 ; i ++ ) {
12
+ ignoredPaths . push ( `appState.HTMLTypes.${ i } .icon` ) ;
13
+ ignoredPaths . push ( `appState.HTMLTypes.${ i } .icon.$$typeof` ) ;
14
+ }
15
+
16
+ return getDefaultMiddleware ( {
17
+ serializableCheck : {
18
+ // Ignore the `configToggle` action type
19
+ // ignoredActions: ['configToggle'],
20
+ // Ignore these field paths in all actions
21
+ // ignoredActionPaths: ['meta.arg', 'payload.timestamp'],
22
+ // Ignore these paths in the state
23
+ ignoredPaths : ignoredPaths ,
24
+ } ,
25
+ } ) ;
26
+ } ,
8
27
} ) ;
9
28
29
+
30
+
31
+
32
+
33
+
34
+
10
35
export default store ;
You can’t perform that action at this time.
0 commit comments