Skip to content

Commit 3445eb0

Browse files
committed
Make Review section fully browserable
1 parent c74d6db commit 3445eb0

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/pages/Review.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
import React, { Component } from 'react';
22
import { connect } from 'react-redux';
33
import { Grid, Row, Col } from 'react-bootstrap';
4+
import { push } from 'redux-little-router';
45
import SplitPane from 'react-split-pane';
56
import Page from './Page';
67
import Loader from '../components/Loader';
78
import Breadcrumbs from '../components/Breadcrumbs';
89
import Selector from '../components/Experiment/Selector';
910
import Diff from '../components/Experiment/Diff';
1011
import Results from '../components/Review/Results';
11-
import {
12-
getCurrentFilePair,
13-
selectPair,
14-
loadFilePair,
15-
} from '../state/filePairs';
12+
import { makeUrl } from '../state/routes';
13+
import { getCurrentFilePair, loadFilePair } from '../state/filePairs';
1614
import {
1715
getFeatures,
1816
mostSimilar,
@@ -160,7 +158,10 @@ const mapStateToProps = state => {
160158

161159
const experimentId = 1;
162160
const mapDispatchToProps = dispatch => ({
163-
onSelect: pairId => dispatch(selectPair(experimentId, pairId)),
161+
onSelect: pairId =>
162+
dispatch(
163+
push(makeUrl('reviewPair', { experiment: experimentId, pair: pairId }))
164+
),
164165
toggleInvisible: (expId, id) => {
165166
dispatch(toggleInvisible());
166167
return dispatch(loadFilePair(expId, id));

0 commit comments

Comments
 (0)