From 45101b7c092e42be63b38c807efb8fd76c3bfc66 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Mon, 4 Oct 2021 16:34:40 -0500 Subject: [PATCH] Add Share to Reddit and Copy Share URL to Share Menu --- .../editor/metadataEditor/metadataEditor.jsx | 29 ------------ .../editor/metadataEditor/metadataEditor.less | 5 --- client/homebrew/pages/editPage/editPage.jsx | 43 +++++++++++++++++- client/homebrew/pages/editPage/editPage.less | 44 +++++++++++++++++++ 4 files changed, 85 insertions(+), 36 deletions(-) diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 07158ad45..c7dea871b 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -65,18 +65,6 @@ const MetadataEditor = createClass({ }); }, - getRedditLink : function(){ - const meta = this.props.metadata; - - const shareLink = (meta.googleId || '') + meta.shareId; - const title = `${meta.title} [${meta.systems.join(' ')}]`; - const text = `Hey guys! I've been working on this homebrew. I'd love your feedback. Check it out. - -**[Homebrewery Link](https://homebrewery.naturalcrit.com/share/${shareLink})**`; - - return `https://www.reddit.com/r/UnearthedArcana/submit?title=${encodeURIComponent(title)}&text=${encodeURIComponent(text)}`; - }, - renderSystems : function(){ return _.map(SYSTEMS, (val)=>{ return