瀏覽代碼

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 {