From e8ac7f73dcb1063602f22dbf158019659e4fbd3d Mon Sep 17 00:00:00 2001 From: rutik wankhade Date: Thu, 21 Jul 2022 15:39:22 +0530 Subject: [PATCH] fix: update twitter link and preview theme --- src/components/Editor.js | 28 ++++++--------------------- src/components/Themes/PreviewTheme.js | 10 +++++----- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/src/components/Editor.js b/src/components/Editor.js index 1a2762d..bd2001f 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -29,6 +29,8 @@ const devIconsUrl = "https://raw.githubusercontent.com/devicons/devicon/master/d // { value: 'javascript', label: 'Javascript' }, // { value: 'python', label: 'Python' }, // ] +const tweetText = encodeURIComponent(`type your thoughts here, Try https://coverview.vercel.app by @WankhadeRutik`) + class Editor extends React.Component { @@ -72,9 +74,11 @@ class Editor extends React.Component {
- Share on Twitter + How to use 🥤 Buy me a coffee + + Share on Twitter
@@ -275,27 +279,7 @@ class Editor extends React.Component {
- {/*
- -

Coverview

- - - -
- - star - - - - - - - sponsor - - -
- -
*/} + diff --git a/src/components/Themes/PreviewTheme.js b/src/components/Themes/PreviewTheme.js index 28e97f0..91ac83c 100644 --- a/src/components/Themes/PreviewTheme.js +++ b/src/components/Themes/PreviewTheme.js @@ -13,11 +13,11 @@ const PreviewTheme = ({ config }) => { style={{ backgroundColor: bgColor }} > -
-
-
-
-
+
+
+
+
+
{image ?