1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Merge remote-tracking branch 'origin/master' into AD-499-whitelabel-prize-with-sluice-as-k

This commit is contained in:
Tim Daubenschütz 2015-07-14 16:48:50 +02:00
commit 26f35d7628
2 changed files with 12 additions and 4 deletions

View File

@ -34,7 +34,7 @@ let SlidesContainer = React.createClass({
// check if slide_num was defined, and if not then default to 0
let queryParams = this.getQuery();
if(!('slide_num' in queryParams)) {
this.transitionTo(this.getPathname(), null, {slide_num: 0});
this.replaceWith(this.getPathname(), null, {slide_num: 0});
}
// init container width
@ -60,7 +60,7 @@ let SlidesContainer = React.createClass({
setSlideNum(slideNum) {
if(slideNum < 0 || slideNum < React.Children.count(this.props.children)) {
this.transitionTo(this.getPathname(), null, {slide_num: slideNum});
this.replaceWith(this.getPathname(), null, {slide_num: slideNum});
this.setState({
slideNum: slideNum
});

View File

@ -3,11 +3,19 @@
import React from 'react';
import PieceList from '../../../piece_list';
import ButtonLink from 'react-router-bootstrap/lib/ButtonLink';
let PrizePieceList = React.createClass({
render() {
return (
<PieceList redirectTo="register_piece" />
<div>
<ButtonLink to="register_piece">
Submit a new artwork to the prize
</ButtonLink>
<PieceList redirectTo="register_piece" />
</div>
);
}
});