react-data-table-component
react-data-table-component copied to clipboard
export type ExpandableRowsComponent from root instead of "react-data-table-component/dist/src/DataTable/types"
Issue Check list
- [ ] Agree to the Code of Conduct
- [ ] Read the README
- [ ] You are using React 16.8.0+
- [ ] You installed
styled-components - [ ] Include relevant code or preferably a code sandbox
Describe the bug
prop type for
expandableRowsComponent?: ExpandableRowsComponent<T>;
is currently not exporting from root like
import DataTable, { TableColumn, TableStyles } from "react-data-table-component";
To Reproduce
If we import it from react-data-table-component/dist/src/DataTable/types netlify build gets failed.
Expected behavior
prop type should be imported like
import { ExpandableRowsComponent, } from "react-data-table-component";
instead of
import { ExpandableRowsComponent, } from "react-data-table-component/dist/src/DataTable/types";