start implementing findbar

This commit is contained in:
Cássio Zen
2016-07-05 13:48:52 -03:00
parent 44bf70a2ae
commit 473357b6b7
5 changed files with 20 additions and 5 deletions

View File

@ -5,6 +5,7 @@ import { connect } from 'react-redux';
import { loadEntries } from '../actions/entries';
import { selectEntries } from '../reducers';
import EntryListing from '../components/EntryListing';
import FindBar from './FindBar';
class DashboardPage extends React.Component {
componentDidMount() {
@ -28,8 +29,16 @@ class DashboardPage extends React.Component {
return <h1>No collections defined in your config.yml</h1>;
}
const commands = [
{ pattern: 'Create Collections(:collectionName)' },
{ pattern: 'Create Posts(:postName)' },
{ pattern: 'Find(:seachTerm as what?)' },
{ pattern: '(:searchTerm as Find...)' }
];
return <div>
<h1>Dashboard</h1>
<FindBar commands={commands} />
<div>
{collections.map((collection) => (
<div key={collection.get('name')}>