Rename Anchor to Link

This commit is contained in:
Aarni Halinen
2020-12-29 02:38:52 +02:00
parent 03a2db3c57
commit 19c49ee76b
23 changed files with 117 additions and 93 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import styled from "styled-components";
import colors from "@theme/colors";
import { Event } from "@models/Event";
import Button from "@components/Button";
import Anchor from "@components/Anchor";
import { Link } from "@components/index";
import noop from "@utils/noop";
import { TextSection } from "@components/index";
import MarkdownStyles from "@views/common/MarkdownStyles";
@@ -56,11 +56,11 @@ const EventPageView: React.FC<EventPageViewProps> = ({ event }) => {
{/* We may have multiple signup forms. Generate own Button for each one */}
<SignupButtons>
{event.signupForm.map(sf => (
<Anchor key={sf.id} to={`/signup/${sf.id}`}>
<Link key={sf.id} to={`/signup/${sf.id}`}>
<Button type="filled" onClick={noop}>
{sf.title_fi}
</Button>
</Anchor>
</Link>
)
)}
</SignupButtons>