Skip to content

Commit

Permalink
refactor: explanation view
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-elena committed Jun 4, 2024
1 parent d8b672e commit 53b454c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/EventExplanationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ function EventExplanationPage(props) {
</Modal.Header>
<Modal.Body>
<MDBContainer xs={12}>
<div>
{React.cloneElement(EventMapping[props.explanation.message.type][props.level], {
log: props.log,
event: props.explanation,
filter: "",
level: props.level
})}
</div>
<ul className="timeline">
<li className={"timeline-item mb-5"} key={props.explanation.timestamp}>
{React.cloneElement(EventMapping[props.explanation.message.type][props.level], {
log: props.log,
event: props.explanation,
filter: "",
level: props.level
})}
</li>
</ul>
</MDBContainer>
</Modal.Body>
</Modal>
Expand Down

0 comments on commit 53b454c

Please sign in to comment.