gab-social/app/javascript/gabsocial/pages/settings_page.js

24 lines
436 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
2020-03-24 04:39:12 +00:00
import SettingsLayout from '../layouts/settings_layout'
class SettingsPage extends React.PureComponent {
2020-03-24 04:39:12 +00:00
2020-02-24 21:56:07 +00:00
render() {
const { children, title } = this.props
2020-02-24 21:56:07 +00:00
return (
<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
)
}
}
SettingsPage.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string,
}
export default SettingsPage