Added about routes pages to react app, layout, AboutSidebar
• Added: - about routes pages to react app, layout, AboutSidebar - about, dmca, investors, privacy policy, terms of sale, terms of service
This commit is contained in:
26
app/javascript/gabsocial/pages/about_page.js
Normal file
26
app/javascript/gabsocial/pages/about_page.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import AboutLayout from '../layouts/about_layout'
|
||||
|
||||
export default class AboutPage extends PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
children: PropTypes.node.isRequired,
|
||||
}
|
||||
|
||||
render() {
|
||||
const { children, title } = this.props
|
||||
|
||||
return (
|
||||
<AboutLayout
|
||||
noComposeButton
|
||||
showBackBtn
|
||||
title={title}
|
||||
>
|
||||
<PageTitle path={title} />
|
||||
{children}
|
||||
</AboutLayout>
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user