mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-10 04:18:44 +00:00
same with download txt
This commit is contained in:
@@ -32,14 +32,14 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props })
|
||||
}, {});
|
||||
|
||||
const renderDownloadLink = ()=>{
|
||||
if(!isBrew) return <Nav.item disabled={!isBrew}>Get txt</Nav.item>;
|
||||
if(!brew?.shareId) return <Nav.item disabled={!brew?.shareId}>Get txt</Nav.item>;
|
||||
let shareLink = brew.shareId;
|
||||
if(brew.googleId && !brew.stubbed) {
|
||||
shareLink = brew.googleId + shareLink;
|
||||
}
|
||||
|
||||
return (
|
||||
<Nav.item icon='fas fa-download' href={`/download/${shareLink}`} disabled={!isBrew}>
|
||||
<Nav.item icon='fas fa-download' href={`/download/${shareLink}`} disabled={!brew?.shareId}>
|
||||
Get txt
|
||||
</Nav.item>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user