From 1e393c7b8d05cc3d95b070c7918c8d76fffdd9da Mon Sep 17 00:00:00 2001 From: javierbrea Date: Sun, 14 Jun 2020 12:16:45 +0200 Subject: [PATCH] style(tests): Rename component to match file name --- test/Books.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Books.js b/test/Books.js index fc3902c..1c47e16 100644 --- a/test/Books.js +++ b/test/Books.js @@ -3,7 +3,7 @@ import PropTypes from "prop-types"; import { BOOKS_ID, ERROR_ID, LOADING_ID } from "./constants"; -const BooksList = ({ books = [], loading, error }) => { +const Books = ({ books = [], loading, error }) => { if (error) { return
{error.message}
; } @@ -23,10 +23,10 @@ const BooksList = ({ books = [], loading, error }) => { ); }; -BooksList.propTypes = { +Books.propTypes = { books: PropTypes.array, loading: PropTypes.bool, error: PropTypes.instanceOf(Error), }; -export default BooksList; +export default Books;