Rename Anchor to Link
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user