From ddc1ac5a811c1a070a3b5e1a798c0ce1d8d38806 Mon Sep 17 00:00:00 2001 From: Sumedha Pramod Date: Thu, 12 Mar 2020 23:17:32 -0700 Subject: [PATCH] Refactor --- public/index.html | 2 +- src/App.tsx | 16 ++++------- .../ToppingCard.css => ItemCard/ItemCard.css} | 8 +++--- .../ToppingCard.tsx => ItemCard/ItemCard.tsx} | 24 ++++++++-------- .../ItemList.css} | 2 +- src/components/ItemList/ItemList.tsx | 17 +++++++++++ src/components/ToppingsList/ToppingsList.tsx | 16 ----------- src/routes/Homepage.tsx | 20 ++++++++----- ...ingDetailsPage.tsx => ItemDetailsPage.tsx} | 24 +++++++--------- src/routes/ItemPage.tsx | 26 +++++++++++++++++ src/routes/Toppings.tsx | 28 ------------------- src/utils/globals.ts | 5 ++++ 12 files changed, 95 insertions(+), 93 deletions(-) rename src/components/{ToppingCard/ToppingCard.css => ItemCard/ItemCard.css} (62%) rename src/components/{ToppingCard/ToppingCard.tsx => ItemCard/ItemCard.tsx} (51%) rename src/components/{ToppingsList/ToppingsList.css => ItemList/ItemList.css} (69%) create mode 100644 src/components/ItemList/ItemList.tsx delete mode 100644 src/components/ToppingsList/ToppingsList.tsx rename src/routes/{ToppingDetailsPage.tsx => ItemDetailsPage.tsx} (73%) create mode 100644 src/routes/ItemPage.tsx delete mode 100644 src/routes/Toppings.tsx diff --git a/public/index.html b/public/index.html index 01a9524..667fba8 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - +