From 8afa70e305c102414725ff9a2f4365ad420c54eb Mon Sep 17 00:00:00 2001 From: Bryan Yehuda Date: Mon, 20 Sep 2021 14:15:49 +0700 Subject: [PATCH] Minor Update --- .../views/templates/template-creator.js | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/scripts/views/templates/template-creator.js b/src/scripts/views/templates/template-creator.js index ab63fdf..95970e4 100644 --- a/src/scripts/views/templates/template-creator.js +++ b/src/scripts/views/templates/template-creator.js @@ -1,29 +1,8 @@ import CONFIG from '../../globals/config'; const createRestaurantDetailTemplate = (restaurants) => ` -

${restaurants.name}

-${restaurants.name} -

Information

-
Rating : ${restaurants.rating}
-
Lokasi : ${restaurants.city}
-
Alamat : ${restaurants.address}
-
Kategori : ${restaurants.categories.map((category) => category.name)}
-
-

Description

-

${restaurants.description}

-

Foods Menu

-

${restaurants.menus.foods.map((food) => `${food.name}
`).join('')}

-

Drinks Menu

-

${restaurants.menus.drinks.map((drink) => `${drink.name}
`).join('')}

-

Customer Reviews

-
- ${restaurants.customerReviews.map((review) => ` -

Name : ${review.name}

-

Date : ${review.date}

-

Review : ${review.review}

- `).join('')} -
-
+ + `; const createRestaurantItemTemplate = (restaurants) => `