From 2b3b304a1f35d3e3e7493ab51100316658a39ea3 Mon Sep 17 00:00:00 2001 From: Charles Jacquin Date: Sun, 9 Jun 2019 17:24:41 +0200 Subject: [PATCH] remove propType error on startup --- .../BestNewMusicMenu/BestNewMusicCard/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/components/Dashboard/BestNewMusicTab/BestNewMusicMenu/BestNewMusicCard/index.js b/app/components/Dashboard/BestNewMusicTab/BestNewMusicMenu/BestNewMusicCard/index.js index f8569b42b2..3b0e1f9e1a 100644 --- a/app/components/Dashboard/BestNewMusicTab/BestNewMusicMenu/BestNewMusicCard/index.js +++ b/app/components/Dashboard/BestNewMusicTab/BestNewMusicMenu/BestNewMusicCard/index.js @@ -1,8 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { bestNewItemShape } from '..'; - import styles from './styles.scss'; const BestNewMusicCard = ({ @@ -31,7 +29,11 @@ const BestNewMusicCard = ({ }; BestNewMusicCard.propTypes = { - item: bestNewItemShape, + item: PropTypes.shape({ + title: PropTypes.string, + artist: PropTypes.string, + thumbnail: PropTypes.string + }), onClick: PropTypes.func };