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