mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 21:32:42 +00:00
processShareId does not need useCallback()
This commit is contained in:
@@ -49,9 +49,9 @@ const SharePage = (props)=>{
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const processShareId = useCallback(()=>{
|
const processShareId = ()=>{
|
||||||
return brew.googleId && !brew.stubbed ? brew.googleId + brew.shareId : brew.shareId;
|
return brew.googleId && !brew.stubbed ? brew.googleId + brew.shareId : brew.shareId;
|
||||||
}, [brew]);
|
};
|
||||||
|
|
||||||
const renderEditLink = ()=>{
|
const renderEditLink = ()=>{
|
||||||
if(!brew.editId) return null;
|
if(!brew.editId) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user