Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit c78d5b5

Browse files
committed
fix: Fix typing
1 parent 8f8de96 commit c78d5b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { PropsWithChildren } from 'react';
1+
import { PropsWithChildren, ReactNode } from 'react';
22
import { Helper } from '@heetch/flamingo-react';
33
import styles from './error-helper.module.scss';
44

5-
export const ErrorHelper = ({ children }: PropsWithChildren) => {
5+
export const ErrorHelper = ({ children }: { children?: ReactNode }) => {
66
return <Helper className={styles['ErrorHelper']}>{children}</Helper>;
77
};

packages/react-forms/src/lib/form-layout/form-layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FormCell } from '@heetch/react-forms';
2-
import { CSSProperties, HTMLProps, PropsWithChildren } from 'react';
2+
import { CSSProperties, HTMLProps, PropsWithChildren, ReactNode } from 'react';
33
import { classNames } from '../../utils';
44
import styles from './form-layout.module.scss';
55

@@ -17,7 +17,7 @@ export const FormLayout = ({
1717
);
1818
};
1919

20-
export const FormLayoutRow = ({ children }: PropsWithChildren) => {
20+
export const FormLayoutRow = ({ children }: { children?: ReactNode }) => {
2121
return (
2222
<div className={[styles['FormLayoutRow'], classNames.layout.row].join(' ')}>
2323
{children}

0 commit comments

Comments
 (0)