2020-08-17 15:07:16 -05:00
|
|
|
import React from 'react'
|
2020-08-17 15:59:29 -05:00
|
|
|
import PropTypes from 'prop-types'
|
2020-03-24 00:39:12 -04:00
|
|
|
import SettingsLayout from '../layouts/settings_layout'
|
|
|
|
|
2020-08-17 15:07:16 -05:00
|
|
|
class SettingsPage extends React.PureComponent {
|
2020-03-24 00:39:12 -04:00
|
|
|
|
2020-02-24 16:56:07 -05:00
|
|
|
render() {
|
2020-10-30 12:57:20 -05:00
|
|
|
const { children, title } = this.props
|
2020-02-24 16:56:07 -05:00
|
|
|
|
|
|
|
return (
|
2020-10-30 12:57:20 -05:00
|
|
|
<SettingsLayout title={title}>
|
2020-02-24 16:56:07 -05:00
|
|
|
{children}
|
2020-03-24 00:39:12 -04:00
|
|
|
</SettingsLayout>
|
2020-02-24 16:56:07 -05:00
|
|
|
)
|
|
|
|
}
|
2020-08-14 12:45:59 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
SettingsPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
title: PropTypes.string,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SettingsPage
|