Files
redash/client/app/components/PageHeader.jsx
Arik Fraimovich 56d3be2248 Prettier all the Javascript code & GitHub Action (#4433)
* Prettier all the JS files

* Add GitHub Action to autoformat code pushed to master

* Fix eslint violation due to formatting.

* Remove GitHub actions for styling

* Add restyled.io config
2019-12-11 17:05:38 +02:00

24 lines
535 B
JavaScript

import React from "react";
import PropTypes from "prop-types";
import { react2angular } from "react2angular";
export function PageHeader({ title }) {
return (
<div className="page-header-wrapper row p-l-15 p-r-15 m-b-10 m-l-0 m-r-0">
<div className="col-sm-9 p-l-0 p-r-0">
<h3>{title}</h3>
</div>
</div>
);
}
PageHeader.propTypes = {
title: PropTypes.string.isRequired,
};
export default function init(ngModule) {
ngModule.component("pageHeader", react2angular(PageHeader));
}
init.init = true;