Selaa lähdekoodia

Properly type children element

Andrew Swistak 6 vuotta sitten
vanhempi
commit
d5edb1db9a

+ 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 {