2 changed files with 50 additions and 39 deletions
@ -1,5 +1,10 @@ |
|||
import React from 'react'; |
|||
import { Inspector } from 'react-dev-inspector'; |
|||
|
|||
const Layout: React.FC = ({ children }) => <>{children}</>; |
|||
const InspectorWrapper = process.env.NODE_ENV === 'development' ? Inspector : React.Fragment; |
|||
|
|||
const Layout: React.FC = ({ children }) => { |
|||
return <InspectorWrapper>{children}</InspectorWrapper>; |
|||
}; |
|||
|
|||
export default Layout; |
|||
|
|||
Loading…
Reference in new issue