1.0.6 • Published 7 years ago

lead-list v1.0.6

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
7 years ago

LeadList

This component was bootstrapped with fusion-component-starter.

Install instructions:

npm install

Testing before publishing package

npm start

Publish local

  1. npm pack - This creates a tarball(in the applications root) that you can then reference locally in another app as though it's actually published.
  2. Just open the app you want to test in and run npm install path/to/tgz.

Publish

  1. Change name in package.json to something that you can actually publish to npm
  2. npm publish

Example usage:

'use strict';
import React from 'react';
import LeadList from '@poc/lead-list;

const ParentApp = (props) => {
  return (
    <div>
      <LeadList
        leads={props.leads}
        loading={props.loading}
        lostDealerLeadStatus={props.lostDealerLeadStatus}
        refreshList={props.refreshList}
        showFilters={props.showFilters}
        toggleFilters={props.toggleFilters}
        toggleIsHot={props.toggleIsHot}
        updateSelected={props.updateSelected}
        updateStatus={props.updateStatus}/>
    </div>
  );
};

export default ParentApp;