mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 09:42:43 +00:00
Move "printPage()" to helpers.js for reuse in multiple pages
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
const React = require('react');
|
||||
const Nav = require('naturalcrit/nav/nav.jsx');
|
||||
const { printPage } = require('../../../shared/helpers.js');
|
||||
|
||||
module.exports = function({printFunction}){
|
||||
return <Nav.item onClick={printFunction} color='purple' icon='far fa-file-pdf'>
|
||||
module.exports = function(){
|
||||
return <Nav.item onClick={printPage} color='purple' icon='far fa-file-pdf'>
|
||||
get PDF
|
||||
</Nav.item>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user