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