From cb893d9094958e367034b661d1723f99d10eb677 Mon Sep 17 00:00:00 2001 From: Paul Savignano Date: Sat, 26 Nov 2016 09:17:50 -0800 Subject: [PATCH] Refactor hrefs to remove page load behavior. --- imports/ui/pages/Documents.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/imports/ui/pages/Documents.js b/imports/ui/pages/Documents.js index f5a12fd..fbfc000 100644 --- a/imports/ui/pages/Documents.js +++ b/imports/ui/pages/Documents.js @@ -1,24 +1,20 @@ import React from 'react'; -import { browserHistory } from 'react-router'; +import { Link } from 'react-router'; import { Row, Col, Button } from 'react-bootstrap'; import DocumentsList from '../containers/DocumentsList.js'; -const buttonNav = (event) => { - event.preventDefault(); - browserHistory.push('/documents/new'); -} - const Documents = () => (

Documents

- + + +
-- 2.0.0