Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Aug 26, 2022
1 parent c07e602 commit 0b87c9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/data-editor/use-custom-cells.test.tsx
Expand Up @@ -18,6 +18,6 @@ describe("use-column-sizer", () => {
])
);

expect(result.current.additionalRenderers[0].kind === GridCellKind.Custom).toBe(true);
expect(result.current.customRenderers[0].kind === GridCellKind.Custom).toBe(true);
});
});
4 changes: 2 additions & 2 deletions packages/core/src/data-editor/use-custom-cells.ts
Expand Up @@ -20,7 +20,7 @@ function inflate<T extends CustomCell>(input: CustomCellRenderer<T>): CustomRend
export function useCustomCells(
cells: readonly CustomCellRenderer<any>[]
): {
additionalRenderers: NonNullable<DataEditorProps["customRenderers"]>;
customRenderers: NonNullable<DataEditorProps["customRenderers"]>;
} {
return { additionalRenderers: React.useMemo(() => cells.map(inflate), [cells]) };
return { customRenderers: React.useMemo(() => cells.map(inflate), [cells]) };
}

0 comments on commit 0b87c9d

Please sign in to comment.