Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import globalize from 'globalize'
import PropTypes from 'prop-types'
import React from 'react'
import localizer from 'react-widgets-globalize'
import 'bootstrap/dist/css/bootstrap.css'
import 'react-widgets/lib/less/react-widgets.less'
import '../css/one-light.less'
import '../css/style.less'
import ApiLayout from './api'
import DefaultLayout from './default'
localizer(globalize)
const propTypes = {
location: PropTypes.object.isRequired,
}
function Layout(props) {
if (props.location.pathname.startsWith('/api')) {
return
}
return
}
Layout.propTypes = propTypes
export default DefaultLayout