Skip to content

Commit

Permalink
fix(table): remove JSX.Element type (#284)
Browse files Browse the repository at this point in the history
* fix(table): remove JSX.Element type

* chore: changeset
  • Loading branch information
JaeYeopHan committed Dec 12, 2023
1 parent 778df4e commit 803c2f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cyan-spoons-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@h6s/table": patch
---

replace JSX.Element type to ReactNode
2 changes: 1 addition & 1 deletion packages/table/src/types/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type CellRendererProps<CellType extends CommonCell> = PropsWithChildren<{

export type CellRecursiveRenderer<CellType extends CommonCell> = (
props: PropsWithChildren<{ cellProps: CellType }>
) => JSX.Element | null;
) => ReactNode | null;

export type CellComponent<CellType extends CommonCell> = (props: {
cellProps: CellType;
Expand Down

0 comments on commit 803c2f7

Please sign in to comment.