소스 검색

Properly type children element

Andrew Swistak 6 년 전
부모
커밋
d5edb1db9a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/javascript/packs/frontend/components/layout/application_layout.tsx

+ 1 - 1
app/javascript/packs/frontend/components/layout/application_layout.tsx

@@ -6,7 +6,7 @@ import {Link} from 'react-router-dom';
 import './style';
 
 interface Props {
-  children?: React.ReactElement;
+  children?: React.ReactNode;
 }
 
 function ApplicationLayout({children}: Props): React.ReactElement {