/*
 *
 * ToolPage
 *
 */

import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import Markdown from 'react-remarkable';
import ContentBlock from 'components/ContentBlock';
import LatinThemeProvider from 'components/LatinThemeProvider';
import AdderRemover from 'containers/Tools/AdderRemover';
import { LearnMoreItem, LearnMoreItemLink, LearnMoreItemSource } from 'components/ToolsPageComponents';
// import { makeSelectToolById } from 'containers/Tool/selectors';

import messages from './messages';

export default function ToolLearnMoreItem(props) { // eslint-disable-line react/prefer-stateless-function
  return (
    <LatinThemeProvider>
      <LearnMoreItem>
        <ContentBlock>
          <LearnMoreItemLink href={props.link} target='_blank'>{props.title}</LearnMoreItemLink>
          {props.source !== '' ? (<LearnMoreItemSource> | <Markdown className={'markdown'} source={props.source} /> </LearnMoreItemSource>) : null }
          {props.year ? `, ${props.year}` : ''}
        </ContentBlock>
      </LearnMoreItem>
    </LatinThemeProvider>
  );
}

@@ -887,15 +887,8 @@
 urce
- !== ''
  ? (
@@ -943,16 +943,30 @@
 rkdown'%7D
+%0A             
  source=
@@ -966,16 +966,64 @@
 source=%7B
+props.year ? %60$%7Bprops.source%7D, $%7Bprops.year%7D%60 : 
 props.so
@@ -1030,17 +1030,16 @@
 urce%7D /%3E
- 
 %3C/LearnM
@@ -1067,56 +1067,8 @@
 l %7D%0A
-          %7Bprops.year ? %60, $%7Bprops.year%7D%60 : ''%7D%0A
     

Fix errant space in learn more items