Fix external links
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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 ›</Link>
|
||||
<a href="https://sosso.fi">Lue opiskelijalehden viimeisin numero ›</a>
|
||||
</Ribbon>
|
||||
</PageSection>
|
||||
<PageSection backgroundColor={PageSectionColor.White} bottomBorder cardSection>
|
||||
|
||||
Reference in New Issue
Block a user