Use Link instead of an anchor for AccordionList's empty placeholder to avoid page refresh

This commit is contained in:
Brett Sun 2016-01-12 12:34:55 +01:00
parent ed264d8511
commit 1dca764166
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
'use strict';
import React from 'react';
import { Link } from 'react-router';
import { getLangText } from '../../utils/lang_utils';
@ -36,7 +38,7 @@ let AccordionList = React.createClass({
</p>
<p className="text-center">
{getLangText('To register one, click')}&nbsp;
<a href="register_piece">{getLangText('here')}</a>!
<Link to="/register_piece">{getLangText('here')}</Link>!
</p>
</div>
);