diff -r 000000000000 -r 5f4fcbc80b37 clientjs/packages/dashboard-components/src/pages/glossary.jsx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clientjs/packages/dashboard-components/src/pages/glossary.jsx Fri Sep 14 17:57:34 2018 +0200 @@ -0,0 +1,47 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import md5 from 'md5'; + +import { connect } from 'react-redux'; + +import IndexList from '../ui/IndexList'; +import TermEntry from '../ui/TermEntry'; + +import './glossary.scss'; + +const GlossaryTerms = ({ termsDict }) => Object.keys(termsDict).sort().map((term, i) => { + const key = `${md5(term)}-${i}`; + return ; +}); + +GlossaryTerms.propTypes = { + termsDict: PropTypes.object.isRequired, +}; + +const GlossaryPage = ({ terms }) => ( +
+ + +
+ + + + +
+
+
+); + +GlossaryPage.propTypes = { + terms: PropTypes.object.isRequired, +}; + + +export default connect( + (state) => { + const { terms } = state; + return { + terms, + }; + }, +)(GlossaryPage);