Skip to content

Commit

Permalink
fix: layout children proptype validation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Mar 18, 2024
1 parent cc5360c commit 2b5828f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/containers/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { ReactNode } from 'react';
import { ReactNode, FunctionComponent } from 'react';
import { Header, Footer } from '~/containers';

interface AppLayoutProps {
children: ReactNode;
}

export const AppLayout: React.FC<AppLayoutProps> = ({ children }) => {
const AppLayout: FunctionComponent<AppLayoutProps> = (props) => {
const { children } = props;
return (
<>
<Header />
Expand All @@ -14,3 +15,5 @@ export const AppLayout: React.FC<AppLayoutProps> = ({ children }) => {
</>
);
};

export { AppLayout };

0 comments on commit 2b5828f

Please sign in to comment.