0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 06:22:40 +00:00

Rename printPage function to printCurrentBrew()

Avoid confusion with other "page" components.
This commit is contained in:
Trevor Buckner
2024-05-28 16:11:18 -04:00
parent 01d60c4520
commit 8a55658bd7
6 changed files with 12 additions and 12 deletions

View File

@@ -1,9 +1,9 @@
const React = require('react');
const Nav = require('naturalcrit/nav/nav.jsx');
const { printPage } = require('../../../shared/helpers.js');
const { printCurrentBrew } = require('../../../shared/helpers.js');
module.exports = function(){
return <Nav.item onClick={printPage} color='purple' icon='far fa-file-pdf'>
return <Nav.item onClick={printCurrentBrew} color='purple' icon='far fa-file-pdf'>
get PDF
</Nav.item>;
};