From 202c93c7c6d78cfd55b805c98c7cd155829a4beb Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 15 May 2017 21:53:50 +1000 Subject: [PATCH] Updated to use react-router links --- components/Docs/Nav/index.js | 3 ++- components/Footer/index.js | 13 +++++++------ components/Header/index.js | 9 +++++---- components/Homepage/MainLinks/index.js | 5 +++-- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/components/Docs/Nav/index.js b/components/Docs/Nav/index.js index 8bf0cd86c27..ca73d07857b 100644 --- a/components/Docs/Nav/index.js +++ b/components/Docs/Nav/index.js @@ -1,5 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { Link } from 'react-router'; import './style.css'; class Nav extends React.Component { @@ -13,7 +14,7 @@ class Nav extends React.Component { return (
  • - {item.title} + {item.title}
  • ); } diff --git a/components/Footer/index.js b/components/Footer/index.js index 6aa995e2ab4..cb5204d0411 100644 --- a/components/Footer/index.js +++ b/components/Footer/index.js @@ -1,4 +1,5 @@ import React from 'react'; +import { Link } from 'react-router'; import slackIcon from './images/slack-icon.png'; import githubIcon from './images/github-icon.png'; import './style.css'; @@ -11,18 +12,18 @@ const Footer = () => (
    Maintained by the {' '} - + Storybook Community - + .
    - + Storybook Slack - - + + Storybook GitHub - +
    diff --git a/components/Header/index.js b/components/Header/index.js index c8c27f6d98c..5470e08d963 100644 --- a/components/Header/index.js +++ b/components/Header/index.js @@ -1,5 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { Link } from 'react-router'; import './style.css'; import storybookLogo from '../../design/homepage/storybook-logo.png'; @@ -16,9 +17,9 @@ class Header extends React.Component { const className = currentSection === section.id ? 'selected' : ''; return ( - + {section.caption} - + ); }); } @@ -34,9 +35,9 @@ class Header extends React.Component {