2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2021 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 import React from 'react';
22 import Grid from 'react-bootstrap/lib/Grid';
23 import Row from 'react-bootstrap/lib/Row';
24 import HistoryEntry from './HistoryEntry.jsx';
26 * This function will take all of the node objects and turn them into
27 * a ui grid of HistoryCard components. This function is essentially a container
28 * for the HistoryCards
32 const HistoryGallery = (props) => {
35 if (props.entries && props.entries.length > 0) {
36 entries = props.entries.map((entry, idx) => {
40 triggerState={props.triggerState}
42 entryType={entry.type}
43 entryValue={entry.value}
44 entryBody= {entry.body}
45 entryHeader= {entry.header}
47 entryAction= {entry.action}
48 entryEpoch= {entry.timeRank}
49 entryNodeId= {props.nodeId}
50 entryDate={entry.displayTimestamp}
51 entryTransId = {entry['tx-id']}/>
55 return (<p>No History</p>);
59 <div className="list-group">
65 export default HistoryGallery;