Fix external links

This commit is contained in:
Jan Tuomi
2019-01-14 18:34:22 +02:00
parent fcdb2b81ff
commit 09fb2fc0cd
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -1,5 +1,4 @@
import * as React from "react";
import { Link } from "react-router-dom";
import "./Icon.scss";
export enum IconType {
@@ -63,13 +62,13 @@ class Icon extends React.Component<IconProps, IconState> {
const elem = nameToIcon(name);
if (link) {
return (
<Link
to={link}
<a
href={link}
className="so-me-icon"
onClick={onClick}
>
{elem}
</Link>
</a>
);
} else {
return (
+1 -1
View File
@@ -144,7 +144,7 @@ class FrontPage extends React.Component<FrontPageProps, FrontPageState> {
<PageSection backgroundColor={PageSectionColor.Orange}>
<Ribbon>
<p>Sössöä vuodesta 1969.</p>
<Link to="https://sosso.fi">Lue opiskelijalehden viimeisin numero&nbsp;</Link>
<a href="https://sosso.fi">Lue opiskelijalehden viimeisin numero&nbsp;</a>
</Ribbon>
</PageSection>
<PageSection backgroundColor={PageSectionColor.White} bottomBorder cardSection>