Sha256: b8acbb9de75ea9ed906e9d59f851f9e3845c73e4c49ca6670f3bd0003ca31512
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { default as RATTree } from 'react-animated-tree'; import { Grid } from 'patternfly-react'; const Tree = ({ files }) => { const filesAmount = files.length; const fileTrees = files.map((file, index) => ( <RATTree key={index} content={file} /> )); return ( <Grid.Col sm={9}> <p>There are currently {filesAmount} report files ready</p> <RATTree content="Reports" open canHide visible> {fileTrees} </RATTree> </Grid.Col> ); }; Tree.propTypes = { files: PropTypes.arrayOf(PropTypes.string), }; Tree.defaultProps = { files: [], }; export default Tree;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_inventory_upload-1.0.0.beta2 | webpack/ForemanInventoryUpload/Components/Tree/Tree.js |