react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

export type ExpandableRowsComponent from root instead of "react-data-table-component/dist/src/DataTable/types"

Open khuramshahzadk opened this issue 1 year ago • 0 comments

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";

khuramshahzadk avatar Feb 07 '24 12:02 khuramshahzadk