Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / src / components / presets / ShoppingList / ShoppingList.tsx
Size: Mime:
import React from 'react'
import {
  ShoppingList as ShoppingListPlaceholder,
  ShoppingListProps,
} from 'abstractions/ShoppingList'
import { observer } from 'xmobx/mobx-react'
import { defaultRenderShoppingListItem } from './renderProps'
import { ShoppingListCollapseState } from './state'

@observer
class ShoppingList extends React.Component<ShoppingListProps> {
  static defaultProps = {
    className: '',
    // renderProps
    renderShoppingListItem: defaultRenderShoppingListItem,
  }

  shoppingListCollapseState = new ShoppingListCollapseState()

  render() {
    return (
      <ShoppingListPlaceholder
        shoppingListCollapseState={this.shoppingListCollapseState}
        {...this.props}
      />
    )
  }
}

export { ShoppingList }
export default ShoppingList