message: feat(component): updated the buttonGrp and featureCard
diff: @@ -35,23 +35,16 @@ const CTA = ({ style, type, ...cta }) => {
  href={cta.href}
  icon={_iconSelector(type)}
  target={_external(type)}
  - onClick={e => _jump(e, type)}
  + handleClick={e => _jump(e, type)}
  />
  );
  case 'button':
  - return (
  - <ButtonGroup
  - buttons={_renderButtons(cta)}
  - target={_external(type)}
  - onClick={e => _jump(e, type)}
  - />
  - );
  + return <ButtonGroup buttons={_renderButtons(cta)} />;
  case 'feature':
  return (
  <FeaturedLink
  - {...cta}
  - target={_external(type)}
  - onClick={e => _jump(e, type)}
  + heading={cta.heading}
  + card={_renderFeatureCard(cta.card)}
  />
  );
  default: {
  @@ -108,9 +101,25 @@ const _iconSelector = type =>
  const _renderButtons = ({ buttons }) =>
  buttons.map(button => {
  button.renderIcon = _iconSelector(button.type);
  + button.onClick = e => _jump(e, button.type);
  + button.target = _external(button.type);
  return button;
  });
  +/**
  + * sets featureCard
  + *
  + * @param {object} featureCard object with card object
  + * @private
  + * @returns {*} object
  + */
  +const _renderFeatureCard = featureCard => {
  + featureCard.icon = _iconSelector(featureCard.type);
  + featureCard.handleClick = e => _jump(e, featureCard.type);
  + featureCard.target = _external(featureCard.type);
  + return featureCard;
  +};
  +
  CTA.propTypes = {
  style: PropTypes.string,
  type: PropTypes.string,
  