UNPKG

violet-paginator

Version:

Display, paginate, sort, filter, and update items from the server. violet-paginator is a complete list management library for react/redux applications.

19 lines (14 loc) 393 B
import React, { PropTypes } from 'react' import { withRecordProps } from '../decorators' export default function DataRow({ component, ...rest }, context) { const Component = withRecordProps(component) return ( <Component listId={context.listId} {...rest} /> ) } DataRow.propTypes = { component: PropTypes.func.isRequired } DataRow.contextTypes = { listId: PropTypes.string }