Skip to content

Commit 3c4e5c5

Browse files
committed
fix: improve Row.from and Column.from signature
1 parent 7adf49f commit 3c4e5c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Column.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const markAsColumn = (node: React.FC) => {
1212
node.__isColumn__ = true;
1313
};
1414

15-
const from = <T extends React.ComponentProps<typeof Column>>(Component: React.FC<T>) => {
15+
const from = <T extends React.FC<any>>(Component: T) => {
1616
// @ts-expect-error: this_is_fine.png
1717
Component.__isColumnForwarded__ = true;
1818
return Component;

src/components/Row.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const markAsRow = (node: React.FC) => {
1111
node.__isRow__ = true;
1212
};
1313

14-
const from = <T extends React.ComponentProps<typeof Row>>(Component: React.FC<T>) => {
14+
const from = <T extends React.FC<any>>(Component: T) => {
1515
// @ts-expect-error: this_is_fine.png
1616
Component.__isRowForwarded__ = true;
1717
return Component;

0 commit comments

Comments
 (0)