Skip to content

Commit 0194c38

Browse files
authored
Merge pull request #450 from chandrikadeb7/chandrikadeb7-svg
fix #444: add theme neutral social icons
2 parents 0253d1b + be02349 commit 0194c38

File tree

6 files changed

+10
-4309
lines changed

6 files changed

+10
-4309
lines changed

src/components/markdown.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ const Markdown = props => {
423423
<>
424424
<DisplaySocial
425425
base="https://codesandbox.com"
426-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/codesandbox.svg"
426+
icon={icon_base_url + "codesandbox.svg"}
427427
username={props.social.codesandbox}
428428
/>
429429
</>
@@ -493,7 +493,7 @@ const Markdown = props => {
493493
<>
494494
<DisplaySocial
495495
base="https://codeforces.com/profile"
496-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/codeforces.svg"
496+
icon={icon_base_url+"codeforces.svg"}
497497
username={props.social.codeforces}
498498
/>
499499
</>
@@ -521,7 +521,7 @@ const Markdown = props => {
521521
<>
522522
<DisplaySocial
523523
base="https://www.topcoder.com/members"
524-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/topcoder.svg"
524+
icon={icon_base_url + "topcoder.svg"}
525525
username={props.social.topcoder}
526526
/>
527527
</>

src/components/markdownPreview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const SocialPreview = props => {
168168
<>
169169
<DisplaySocial
170170
base="https://codesandbox.com"
171-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/codesandbox.svg"
171+
icon={icon_base_url + "codesandbox.svg"}
172172
username={props.social.codesandbox}
173173
/>
174174
</>
@@ -238,7 +238,7 @@ export const SocialPreview = props => {
238238
<>
239239
<DisplaySocial
240240
base="https://codeforces.com/profile"
241-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/codeforces.svg"
241+
icon={icon_base_url + "codeforces.svg"}
242242
username={props.social.codeforces}
243243
/>
244244
</>
@@ -266,7 +266,7 @@ export const SocialPreview = props => {
266266
<>
267267
<DisplaySocial
268268
base="https://www.topcoder.com/members"
269-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/topcoder.svg"
269+
icon={icon_base_url + "topcoder.svg"}
270270
username={props.social.topcoder}
271271
/>
272272
</>
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)