Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,4 @@ class App extends Component {
}
}

export default App;
export default App;
12 changes: 7 additions & 5 deletions src/app/components/DetailCards/Actions/ActionsDisplay.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import ReactJson from 'react-json-view';

//styled components
import { DetailsWrapper } from '../../../styles/Details.jsx';
Expand All @@ -8,11 +9,12 @@ export default function Actions(props) {
const { action } = props;
return (
<DetailsWrapper>
action:
{(action && action.type) || 'select an event'}
<br></br>
payload:
{(action && action.payload) || 'select an event'}
{<ReactJson
theme={'threezerotwofour'}
style={{ backgroundColor: 'transparent' }}
displayDataTypes={false}
src={action}
/> || 'select an event'}
</DetailsWrapper>
);
}
11 changes: 9 additions & 2 deletions src/app/components/DetailCards/State/StateCard.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import React from 'react';
import ReactJson from 'react-json-view';

export default function EffectCard(props) {
// renders the data to show
const { stringData } = props;
const { actionState } = props;

return (
<div>
{ stringData || 'select an event'}
<ReactJson
theme={'threezerotwofour'}
style={{ backgroundColor: 'transparent', height: '-webkit-fill-available' }}
displayDataTypes={false}
src={actionState}
/>
</div>
);
}
4 changes: 1 addition & 3 deletions src/app/components/DetailCards/State/StateDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import { DetailsWrapper } from '../../../styles/Details.jsx';
export default function State(props) {
// stringifying data to pass down to StateCard to display
const { actionState } = props;
const stringData = JSON.stringify(actionState, null, '\t');

return (
<DetailsWrapper>
{<StateCard stringData={stringData} />}
{<StateCard actionState={actionState} />}
</DetailsWrapper>
);
}
Loading