Report templates ported to ReactJS and Knex.

Does not run yet because reports have dependencies on the old report templates.
This commit is contained in:
Tomas Bures 2017-07-09 15:41:53 +02:00
parent be7da791db
commit d4cea46f07
29 changed files with 807 additions and 688 deletions

View file

@ -295,6 +295,20 @@ class NavButton extends Component {
}
}
class DropdownLink extends Component {
static propTypes = {
to: PropTypes.string
}
render() {
const props = this.props;
return (
<li><Link to={props.to}>{props.children}</Link></li>
);
}
}
function withPageHelpers(target) {
withErrorHandling(target);
@ -340,5 +354,6 @@ export {
Title,
Toolbar,
NavButton,
DropdownLink,
withPageHelpers
};