new PageTitle component to have each page the same title
This commit is contained in:
24
src/elements/PageTitle/PageTitle.js
Normal file
24
src/elements/PageTitle/PageTitle.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from "react";
|
||||
import "./PageTitle.css"
|
||||
|
||||
class PageTitle extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.props = props;
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className='pageheader'>
|
||||
<span className='pageheadertitle'>{this.props.title}</span>
|
||||
<span className='pageheadersubtitle'>{this.props.subtitle}</span>
|
||||
{this.props.children}
|
||||
<hr/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default PageTitle;
|
||||
Reference in New Issue
Block a user