From 6f3c876440f7dcea637430bc00c09442eda7e980 Mon Sep 17 00:00:00 2001 From: James Baxley Date: Mon, 5 Dec 2016 21:14:40 -0500 Subject: [PATCH] correctly pass props to review --- .../__tests__/__snapshots__/index.js.snap | 43 ++++++++++++++----- imports/pages/give/review/index.js | 3 +- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/imports/pages/give/review/__tests__/__snapshots__/index.js.snap b/imports/pages/give/review/__tests__/__snapshots__/index.js.snap index 81c323568..0b1a318aa 100644 --- a/imports/pages/give/review/__tests__/__snapshots__/index.js.snap +++ b/imports/pages/give/review/__tests__/__snapshots__/index.js.snap @@ -7,22 +7,45 @@ exports[`GiveReviewTemplate returns component based on state 1`] = ` exports[`GiveReviewTemplate returns component based on state 1`] = ` + } + url={false} + userId="jY4RT2WK55yKYtj4y" /> `; exports[`GiveReviewTemplate returns component based on state 1`] = ` diff --git a/imports/pages/give/review/index.js b/imports/pages/give/review/index.js index 338875712..ee6c90794 100644 --- a/imports/pages/give/review/index.js +++ b/imports/pages/give/review/index.js @@ -74,7 +74,6 @@ export class Template extends Component { render() { const { state, errors, total, data } = this.props.give; - switch (state) { case "loading": return ; @@ -97,7 +96,7 @@ export class Template extends Component { onClick={() => {}} />); default: - return ; + return ; } } }