import React from 'react'; import { withNamespaces, WithNamespaces } from 'react-i18next'; import SubmitIcon from 'static/images/guide-submit.svg'; import ReviewIcon from 'static/images/guide-review.svg'; import CommunityIcon from 'static/images/guide-community.svg'; import './Explainer.less'; import * as ls from 'local-storage'; import { Button, Checkbox, Icon } from 'antd'; interface CreateProps { startSteps: () => void; } type Props = WithNamespaces & CreateProps; const Explainer: React.SFC = ({ t, startSteps }) => { const items = [ { text: t('home.guide.submit'), icon: , }, { text: t('home.guide.review'), icon: , }, { text: t('home.guide.community'), icon: , }, ]; return (

{t('home.guide.title')}

You're almost ready to create a proposal.
{items.map((item, idx) => (
{item.icon}
{item.text}
))}
ls.set('noExplain', ev.target.checked)}> Don't show this again
); }; export default withNamespaces()(Explainer);