mirror of
https://github.com/getredash/redash.git
synced 2026-03-21 16:00:09 -04:00
* 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
24 lines
535 B
JavaScript
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;
|