gab-social/app/javascript/gabsocial/pages/settings_page.js
mgabdev 7e47bb1d9c Removed prop-types global import, added to files directly
• Removed:
- prop-types global import, added to files directly
2020-08-17 15:59:29 -05:00

32 lines
502 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import SettingsLayout from '../layouts/settings_layout'
class SettingsPage extends React.PureComponent {
render() {
const {
children,
tabs,
title,
} = this.props
return (
<SettingsLayout
title={title}
tabs={tabs}
>
{children}
</SettingsLayout>
)
}
}
SettingsPage.propTypes = {
children: PropTypes.node.isRequired,
tabs: PropTypes.array,
title: PropTypes.string,
}
export default SettingsPage