From 1723ac1f37ef30e56ea7535407a47663639b9ab4 Mon Sep 17 00:00:00 2001 From: John Earle Date: Mon, 5 Feb 2018 11:18:14 -0800 Subject: [PATCH] access PropTypes via prop-types --- ui/components/breadcrumbs/index.react.jsx | 3 ++- ui/components/dynamic-icons/ellie/example.jsx | 5 +++-- ui/components/dynamic-icons/trend/example.jsx | 5 +++-- ui/components/dynamic-icons/typing/example.jsx | 9 +++++---- ui/components/heading/index.react.jsx | 5 +++-- ui/components/progress-ring/index.jsx | 3 ++- ui/components/tabs/index.react.jsx | 3 ++- ui/shared/svg-icon/index.jsx | 7 ++++--- ui/shared/truncate/index.react.jsx | 3 ++- ui/utilities/media-objects/index.react.jsx | 15 ++++++++------- 10 files changed, 34 insertions(+), 24 deletions(-) diff --git a/ui/components/breadcrumbs/index.react.jsx b/ui/components/breadcrumbs/index.react.jsx index f2776d8265..7a8bace2ea 100644 --- a/ui/components/breadcrumbs/index.react.jsx +++ b/ui/components/breadcrumbs/index.react.jsx @@ -3,6 +3,7 @@ import React from 'react'; import classNames from 'classnames'; +import PropTypes from 'prop-types'; const Crumb = props => (
  • @@ -10,7 +11,7 @@ const Crumb = props => (
  • ); -Crumb.propTypes = { href: React.PropTypes.string }; +Crumb.propTypes = { href: PropTypes.string }; const BreadCrumbs = props => (