Updated Twitter Badge Component

This commit is contained in:
Sunit Shirke
2020-10-02 18:07:48 +05:30
committed by GitHub
parent 97b555e63c
commit bff504b498
+17
View File
@@ -91,6 +91,19 @@ const Markdown = props => {
)
}
return ""
}
const TwitterBadge = props => {
let link = "https://img.shields.io/twitter/follow/" + props.twitter + "?logo=twitter&style=for-the-badge"
if (props.show) {
return (
<>
{`<p align="left"> <img src="${link}" alt="${props.twitter}" /> </p>`}
<br />
<br />
</>
)
}
return ""
}
const GitHubStats = props => {
let link =
@@ -210,6 +223,10 @@ const Markdown = props => {
show={props.data.visitorsBadge}
github={props.social.github}
/>
<TwitterBadge
show={props.data.twitterBadge}
twitter={props.social.twitter}
/>
</>
<>
<DisplayWork