Skip to content

Commit

Permalink
chore(TableInteractionsManager): export interfaces (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
amen-souissi committed May 15, 2021
1 parent d37cccb commit a574300
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@decathlon/react-table",
"version": "1.15.1",
"version": "1.15.2",
"description": "React components for efficiently rendering large tabular data",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface Column {
index: number;
}

interface ITableInteractionsManagerProps extends ITableInteractionManagerState {
export interface ITableInteractionsManagerProps extends ITableInteractionManagerState {
tableRef: Nullable<(table: Table) => void>;
/** The table ref. */
table: Nullable<ComponentRef<Table>>;
Expand Down Expand Up @@ -286,4 +286,8 @@ const mapDispatchToProps = (dispatch: React.Dispatch<TableInteractionsAction>) =
updateColumnsCursor: (columnsCursor: CellValue) => dispatch(updateColumnsCursor(columnsCursor))
});

export const useTableInteractionsManager = (): ITableInteractionsManagerProps => {
return React.useContext(TableInteractionsContext);
};

export default TableInteractionsManager;

0 comments on commit a574300

Please sign in to comment.