-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
printPage
function to printCurrentBrew()
Avoid confusion with other "page" components.
- Loading branch information
1 parent
01d60c4
commit 8a55658
Showing
6 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters