const ReactRouter = require('react-router'); const ReactRedux = require('react-redux'); const React = require('react'); const find = require('lodash.find'); const Loader = require('../components/loader'); const Printers = require('../components/printers'); const Changes = require('../components/changes'); const Change = require('../components/change'); const actions = require('../state/actions'); const { fetchChanges, lockPrinter, print, transitionTo } = actions; const { Match } = ReactRouter; const { connect } = ReactRedux; const Print = ({ pathname, printers = [], changes = [], lockPrinter, fetchChanges, onPrint, loaded, loading, locked, router }) => { const allChanges = () => { return (
Changes
Change not found
); } const _onPrint = (id) => { return () => { return onPrint(id); }; }; // TODO: don't load all changes return (Change
Printers