added correct social links

This commit is contained in:
horhik 2020-05-27 08:01:09 +03:00
parent 845c8f7d38
commit e57aff41dd
2 changed files with 10 additions and 6 deletions

View File

@ -11,7 +11,7 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4b1db503-490b-4f06-812d-6b9b94d2764a" name="Default Changelist" comment=""> <list default="true" id="4b1db503-490b-4f06-812d-6b9b94d2764a" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/src/css/elements/blog-post-preview.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/css/elements/blog-post-preview.scss" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -76,7 +76,7 @@
<workItem from="1590125952856" duration="14140000" /> <workItem from="1590125952856" duration="14140000" />
<workItem from="1590359928462" duration="4688000" /> <workItem from="1590359928462" duration="4688000" />
<workItem from="1590372993882" duration="19190000" /> <workItem from="1590372993882" duration="19190000" />
<workItem from="1590539117687" duration="3128000" /> <workItem from="1590539117687" duration="5804000" />
</task> </task>
<servers /> <servers />
</component> </component>

View File

@ -4,15 +4,15 @@ import asciiWord from "../../functions/ascii-word";
const links = [ const links = [
{ {
site: "github", site: "github",
url: "https://github.com", url: "https://github.com/horhik",
}, },
{ {
site: "twitter", site: "twitter",
url: "https://twitter.com", url: "https://twitter.com/HORHl",
}, },
{ {
site: "telegram", site: "mail",
url: "https://telegram.org", mail: "horhik@tuta.io",
}, },
]; ];
@ -29,7 +29,11 @@ const Contacts = (props) => {
<ul className={"contacts"}> <ul className={"contacts"}>
{links.map((link) => ( {links.map((link) => (
<li key={link.url}> <li key={link.url}>
{link.mail ?
<SocialLink url={`mailto:${link.mail}`} site={link.site} />
:
<SocialLink url={link.url} site={link.site} /> <SocialLink url={link.url} site={link.site} />
}
</li> </li>
))} ))}
</ul> </ul>