Skip to content

Commit

Permalink
refactor: strict children
Browse files Browse the repository at this point in the history
  • Loading branch information
timoheddes committed Aug 11, 2023
1 parent 63deb05 commit 826e288
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/libs/react-ui/src/components/NavFooter/NavFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { containerClass } from './NavFooter.css';
import { INavFooterPanelProps } from './NavFooterPanel';

import { darkThemeClass } from '@theme/vars.css';
import React, { FC } from 'react';
import React, { FC, FunctionComponentElement } from 'react';

export interface INavFooterContainerProps {
children: React.ReactNode;
children: FunctionComponentElement<INavFooterPanelProps>[];
darkMode?: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { footerPanel } from './NavFooter.css';
import { INavFooterIconButtonProps } from './NavFooterIconButton';
import { INavFooterLinkProps } from './NavFooterLink';

import React, { FC } from 'react';
import React, { FC, FunctionComponentElement } from 'react';

export interface INavFooterPanelProps {
children: React.ReactNode;
children: FunctionComponentElement<
INavFooterLinkProps | INavFooterIconButtonProps
>[];
}

export const NavFooterPanel: FC<INavFooterPanelProps> = ({ children }) => {
Expand Down

0 comments on commit 826e288

Please sign in to comment.