1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 10:25:08 +01:00

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

View File

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