created separate packages for @scm-manager/ui-types and @scm-manager/ui-components

This commit is contained in:
Sebastian Sdorra
2018-08-31 13:06:01 +02:00
parent d20b69ea23
commit 0a0fd7a261
71 changed files with 19040 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// @flow
import React from "react";
type Props = {
subtitle?: string
};
class Subtitle extends React.Component<Props> {
render() {
const { subtitle } = this.props;
if (subtitle) {
return <h1 className="subtitle">{subtitle}</h1>;
}
return null;
}
}
export default Subtitle;