Skip to content

Commit

Permalink
Change component name
Browse files Browse the repository at this point in the history
Relates #39
  • Loading branch information
ranasobeid95 committed Sep 29, 2019
1 parent 6878d7b commit dcb016e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/mealPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CardMeal from './CardMeal';

import './style.css';

const MealPage = ({ data }) => {
const MealList = ({ data }) => {
const listItems = data.map(item => {
return (
<li>
Expand All @@ -14,7 +14,7 @@ const MealPage = ({ data }) => {
});
return <ul className="menu">{listItems}</ul>;
};
MealPage.propTypes = {
MealList.propTypes = {
data: PropTypes.isRequired,
};
export default MealPage;
export default MealList;

0 comments on commit dcb016e

Please sign in to comment.