Cleaned the code a bit
This commit is contained in:
@ -23,11 +23,10 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
const Subtitle = function(props) {
|
||||
export default function(props) {
|
||||
return (
|
||||
<p className={ "o-subtitle" + ( props.className ? " " + props.className : "") }>
|
||||
{ props.children }
|
||||
</p>
|
||||
);
|
||||
}
|
||||
export default Subtitle;
|
||||
|
@ -23,11 +23,10 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
const Title = function(props) {
|
||||
export default function(props) {
|
||||
return (
|
||||
<h1 className={ "o-title" + ( props.className ? " " + props.className : "") }>
|
||||
{ props.children }
|
||||
</h1>
|
||||
);
|
||||
}
|
||||
export default Title;
|
||||
|
Reference in New Issue
Block a user