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 * as React from "react";
import { Link } from "react-router-dom";
import "./Icon.scss"; import "./Icon.scss";
export enum IconType { export enum IconType {
@@ -63,13 +62,13 @@ class Icon extends React.Component<IconProps, IconState> {
const elem = nameToIcon(name); const elem = nameToIcon(name);
if (link) { if (link) {
return ( return (
<Link <a
to={link} href={link}
className="so-me-icon" className="so-me-icon"
onClick={onClick} onClick={onClick}
> >
{elem} {elem}
</Link> </a>
); );
} else { } else {
return ( return (
+1 -1
View File
@@ -144,7 +144,7 @@ class FrontPage extends React.Component<FrontPageProps, FrontPageState> {
<PageSection backgroundColor={PageSectionColor.Orange}> <PageSection backgroundColor={PageSectionColor.Orange}>
<Ribbon> <Ribbon>
<p>Sössöä vuodesta 1969.</p> <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> </Ribbon>
</PageSection> </PageSection>
<PageSection backgroundColor={PageSectionColor.White} bottomBorder cardSection> <PageSection backgroundColor={PageSectionColor.White} bottomBorder cardSection>