NIAEFEUP / uni

Mobile app designed to help students of the University of Porto to manage their academic life.
GNU General Public License v3.0
50 stars 18 forks source link

Added restaurant card implementation #1398

Open abutuc opened 1 week ago

abutuc commented 1 week ago

Closes #1274

Added the redesign implementation of the restaurant card. The card has as input parameters "restaurantName", "restaurantType", "menuItems", "isFavorite" and "onFavoriteToggle" callback function, which allows us to abstract the logic from the component. Additionally, this card returns a Generic Card whose child is the actual restaurant card content.

Restaurant Card

Note: the background color and the elevation property are being inherited from the Generic Card implementation, so when the Generic Card implementation has these issues fixed, the Restaurant Card should look like the mock version.

Review checklist

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 12%. Comparing base (0d8b0af) to head (0cdab5d). Report is 1 commits behind head on ui/redesign.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## ui/redesign #1398 +/- ## =========================================== Coverage 12% 12% =========================================== Files 266 266 Lines 7201 7201 =========================================== Hits 806 806 Misses 6395 6395 ```
DGoiana commented 1 week ago

@abutuc can you add screenshots of the result?

DGoiana commented 1 week ago

Use TabBar in order to build and implement the top bar