Skip to content

Commit 56df583

Browse files
author
Jeroen van Steijn
committed
TSC fixes for separate components
1 parent dbbb5a9 commit 56df583

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

components/src/components/TextBox/TextBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface TextBoxProps {
2121
children: React.ReactNode;
2222
}
2323

24-
const TextBox: React.FC = ({ children }: WithStyle<TextBoxProps>) => {
24+
const TextBox: React.FC<{children: React.ReactNode}> = ({ children }: WithStyle<TextBoxProps>) => {
2525
return <TextBoxContainer>{children}</TextBoxContainer>;
2626
};
2727

components/src/components/Typography/Typography.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface TextStylingProps{
1212
color?: ThemeColors;
1313
fontWeight?: FontWeight;
1414
size?: Size;
15+
children: React.ReactNode;
1516
}
1617

1718
type TypographyProps = {

components/src/containers/CaseTeamMembers/CaseTeamMembers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const MembersContainer = styled(Container) <{ countItems: number }>`
7979
`;
8080

8181

82-
const CaseTeamMembers: React.FC = ({ children }) => {
82+
const CaseTeamMembers: React.FC<{children: React.ReactNode}> = ({ children }) => {
8383
const count = Children.count(children);
8484

8585
return (<CaseTeamMembersContainer>

0 commit comments

Comments
 (0)