nexxtway/react-rainbow

View on GitHub
src/components/ActivityTimeline/basicTimeline.js

Summary

Maintainability
A
40 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import StyledUl from './styled/ul';

export default function BasicTimeline(props) {
    const { id, children, className, style } = props;
    return (
        <StyledUl id={id} className={className} style={style}>
            {children}
        </StyledUl>
    );
}

BasicTimeline.propTypes = {
    id: PropTypes.string,
    children: PropTypes.node,
    className: PropTypes.string,
    style: PropTypes.object,
};

BasicTimeline.defaultProps = {
    id: undefined,
    children: null,
    className: undefined,
    style: undefined,
};