diff --git a/src/components/markdown.js b/src/components/markdown.js index ff6fe13..ab402a4 100644 --- a/src/components/markdown.js +++ b/src/components/markdown.js @@ -266,6 +266,9 @@ const DisplaySupport = props => { {props.support.buyMeACoffee && ` ${props.support.buyMeACoffee}`} + {props.support.buyMeAKofi && + ` + ${props.support.buyMeAKofi}`} {`



`}

@@ -277,7 +280,7 @@ const DisplaySupport = props => { const Markdown = props => { const icon_base_url = "https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/"; - + return (
<> @@ -405,7 +408,7 @@ const Markdown = props => { <> diff --git a/src/components/markdownPreview.js b/src/components/markdownPreview.js index 9abd7ba..912c84d 100644 --- a/src/components/markdownPreview.js +++ b/src/components/markdownPreview.js @@ -122,7 +122,7 @@ export const DisplaySocial = props => { export const SocialPreview = props => { let viewSocial = false - const icon_base_url = + const icon_base_url = "https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/"; Object.keys(props.social).forEach(key => { if (props.social[key] && key != "github") viewSocial = true @@ -153,7 +153,7 @@ export const SocialPreview = props => { <> @@ -413,24 +413,36 @@ export const SupportPreview = props => { viewSupport = true } }) - return ( -
+ return props.support.buyMeACoffee || props.support.buyMeAKofi ? ( +
{props.support.buyMeACoffee && ( -
- - Buy Me A Coffee - -
+ + Buy Me A Coffee + + )} + {props.support.buyMeAKofi && ( + + Buy Me A Ko-fi + )}
+ ) : ( + "" ) } diff --git a/src/components/support.js b/src/components/support.js index 6b67756..3aa9129 100644 --- a/src/components/support.js +++ b/src/components/support.js @@ -7,20 +7,34 @@ const Support = props => { Support
-
+
buymeacoffee props.handleSupportChange("buyMeACoffee", event)} />
+
+ buymeakofi + props.handleSupportChange("buyMeAKofi", event)} + /> +
)