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

30 lines
435 B
JavaScript
Raw Normal View History

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