File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
- import PropTypes from 'prop-types' ;
1
+ // @flow
2
+
3
+ import * as React from 'react' ;
3
4
import logger from '../../shared/logger' ;
4
5
import LanguageComponent from './LanguageComponent' ;
5
6
import BaseHelmet from './BaseHelmet' ;
6
7
7
- export default function ReworkJsWrapper ( props ) {
8
+ type Props = {
9
+ children : any ,
10
+ } ;
11
+
12
+ export default function ReworkJsWrapper ( props : Props ) {
8
13
9
14
return (
10
- < div >
15
+ < React . Fragment >
11
16
< BaseHelmet />
12
17
< LanguageComponent >
13
18
{ props . children }
14
19
</ LanguageComponent >
15
- </ div >
20
+ </ React . Fragment >
16
21
) ;
17
22
}
18
23
19
- ReworkJsWrapper . propTypes = {
20
- children : PropTypes . any ,
21
- } ;
22
-
23
24
// Install ServiceWorker and AppCache in the end since
24
25
// it's not most important operation and if main code fails,
25
26
// we do not want it installed
You can’t perform that action at this time.
0 commit comments