Skip to content

Commit e0a8b5e

Browse files
Gaber MowienaGaber Mowiena
authored andcommitted
functionality for effects display
1 parent f52c61a commit e0a8b5e

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/app/components/App.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Details from '../container/Details.jsx';
1111

1212
// styled components
1313
import { Wrapper } from '../styles/SplitPane.jsx';
14-
import stateDifference from './stateDifference.jsx';
1514

1615
// import from styled components to create global styles
1716
const GlobalStyle = createGlobalStyle`
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
import React from 'react';
22
import { DetailsWrapper } from '../../../styles/Details.jsx';
3+
import ReactJson from 'react-json-view';
4+
// functionality
5+
// gets difference from previous state to new state
6+
import stateDifference from '../../stateDifference.jsx';
7+
38

49
export default function Effects(props) {
10+
console.log('state differnce in effects display IMPORT', stateDifference);
11+
const differenceOfPrevAndNextState = stateDifference([1,2,3], [2,4, 9, 11, {'wow': 1}])
512
return (
6-
<DetailsWrapper>effects display page</DetailsWrapper>
13+
<DetailsWrapper>
14+
<ReactJson
15+
theme={'threezerotwofour'}
16+
style={{ backgroundColor: 'transparent', height: '-webkit-fill-available' }}
17+
displayDataTypes={false}
18+
src={differenceOfPrevAndNextState}
19+
/>
20+
</DetailsWrapper>
21+
722
);
823
}

src/app/container/Details.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default function Details(props) {
2121
action, id, actionState,
2222
} = props;
2323

24+
2425
return (
2526
<Router>
2627
<>

0 commit comments

Comments
 (0)