mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-19 15:58:13 +00:00
refactor the nav into the pages
This commit is contained in:
@@ -2,11 +2,12 @@ import React from 'react';
|
||||
import dedent from 'dedent';
|
||||
import Nav from './nav.jsx';
|
||||
|
||||
const getShareId = (brew)=>(
|
||||
brew.googleId && !brew.stubbed
|
||||
const getShareId = (brew)=>{
|
||||
if (!brew) return null;
|
||||
return brew.googleId && !brew.stubbed
|
||||
? brew.googleId + brew.shareId
|
||||
: brew.shareId
|
||||
);
|
||||
};
|
||||
|
||||
const getRedditLink = (brew)=>{
|
||||
const text = dedent`
|
||||
|
||||
Reference in New Issue
Block a user