From b8014e2471f8a856f6cece4c1103df5359f7b478 Mon Sep 17 00:00:00 2001 From: Vantix Date: Thu, 10 Mar 2022 18:38:03 +0100 Subject: [PATCH 1/6] =?UTF-8?q?A=C3=B1adidas=20carpetas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/{Carrito.tsx => Cart/Cart.tsx} | 0 webapp/src/components/{ => Cart}/CartButons.tsx | 0 webapp/src/components/{ => Cart}/ShoesCart.tsx | 0 webapp/src/components/{ => Details}/Details.tsx | 0 webapp/src/components/{ => Details}/LeftDetails.tsx | 0 webapp/src/components/{ => Details}/RightDetails.tsx | 0 webapp/src/components/{ => Details}/TableSizes.tsx | 0 webapp/src/components/{ => Fragments}/Footer.tsx | 0 webapp/src/components/{ => Fragments}/Nav.tsx | 0 webapp/src/components/{ => Home}/Home.tsx | 0 webapp/src/components/{ => Home}/List.tsx | 0 webapp/src/components/{ => Home}/Shoes.tsx | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename webapp/src/components/{Carrito.tsx => Cart/Cart.tsx} (100%) rename webapp/src/components/{ => Cart}/CartButons.tsx (100%) rename webapp/src/components/{ => Cart}/ShoesCart.tsx (100%) rename webapp/src/components/{ => Details}/Details.tsx (100%) rename webapp/src/components/{ => Details}/LeftDetails.tsx (100%) rename webapp/src/components/{ => Details}/RightDetails.tsx (100%) rename webapp/src/components/{ => Details}/TableSizes.tsx (100%) rename webapp/src/components/{ => Fragments}/Footer.tsx (100%) rename webapp/src/components/{ => Fragments}/Nav.tsx (100%) rename webapp/src/components/{ => Home}/Home.tsx (100%) rename webapp/src/components/{ => Home}/List.tsx (100%) rename webapp/src/components/{ => Home}/Shoes.tsx (100%) diff --git a/webapp/src/components/Carrito.tsx b/webapp/src/components/Cart/Cart.tsx similarity index 100% rename from webapp/src/components/Carrito.tsx rename to webapp/src/components/Cart/Cart.tsx diff --git a/webapp/src/components/CartButons.tsx b/webapp/src/components/Cart/CartButons.tsx similarity index 100% rename from webapp/src/components/CartButons.tsx rename to webapp/src/components/Cart/CartButons.tsx diff --git a/webapp/src/components/ShoesCart.tsx b/webapp/src/components/Cart/ShoesCart.tsx similarity index 100% rename from webapp/src/components/ShoesCart.tsx rename to webapp/src/components/Cart/ShoesCart.tsx diff --git a/webapp/src/components/Details.tsx b/webapp/src/components/Details/Details.tsx similarity index 100% rename from webapp/src/components/Details.tsx rename to webapp/src/components/Details/Details.tsx diff --git a/webapp/src/components/LeftDetails.tsx b/webapp/src/components/Details/LeftDetails.tsx similarity index 100% rename from webapp/src/components/LeftDetails.tsx rename to webapp/src/components/Details/LeftDetails.tsx diff --git a/webapp/src/components/RightDetails.tsx b/webapp/src/components/Details/RightDetails.tsx similarity index 100% rename from webapp/src/components/RightDetails.tsx rename to webapp/src/components/Details/RightDetails.tsx diff --git a/webapp/src/components/TableSizes.tsx b/webapp/src/components/Details/TableSizes.tsx similarity index 100% rename from webapp/src/components/TableSizes.tsx rename to webapp/src/components/Details/TableSizes.tsx diff --git a/webapp/src/components/Footer.tsx b/webapp/src/components/Fragments/Footer.tsx similarity index 100% rename from webapp/src/components/Footer.tsx rename to webapp/src/components/Fragments/Footer.tsx diff --git a/webapp/src/components/Nav.tsx b/webapp/src/components/Fragments/Nav.tsx similarity index 100% rename from webapp/src/components/Nav.tsx rename to webapp/src/components/Fragments/Nav.tsx diff --git a/webapp/src/components/Home.tsx b/webapp/src/components/Home/Home.tsx similarity index 100% rename from webapp/src/components/Home.tsx rename to webapp/src/components/Home/Home.tsx diff --git a/webapp/src/components/List.tsx b/webapp/src/components/Home/List.tsx similarity index 100% rename from webapp/src/components/List.tsx rename to webapp/src/components/Home/List.tsx diff --git a/webapp/src/components/Shoes.tsx b/webapp/src/components/Home/Shoes.tsx similarity index 100% rename from webapp/src/components/Shoes.tsx rename to webapp/src/components/Home/Shoes.tsx From 773280d3f62cad9ad64501d5ace7064b957b9d92 Mon Sep 17 00:00:00 2001 From: Vantix Date: Thu, 10 Mar 2022 18:54:22 +0100 Subject: [PATCH 2/6] Arreglados imports --- webapp/src/App.tsx | 17 +++++++++++++---- webapp/src/components/Cart/Cart.tsx | 8 ++++---- webapp/src/components/Details/Details.tsx | 8 ++++---- webapp/src/components/Fragments/Nav.tsx | 7 ++++++- webapp/src/components/Home/Home.tsx | 8 +++++--- webapp/src/components/Home/List.tsx | 2 -- 6 files changed, 32 insertions(+), 18 deletions(-) diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx index f4cef2e..be23ff1 100644 --- a/webapp/src/App.tsx +++ b/webapp/src/App.tsx @@ -1,18 +1,27 @@ import Box from '@mui/material/Box'; import Link from '@mui/material/Link'; -import Home from './components/Home'; +import Home from './components/Home/Home'; import Container from '@mui/material/Container'; import Welcome from './components/Welcome'; import {getUsers} from './api/api'; import {User} from './shared/shareddtypes'; import './App.css'; -import Details from './components/Details'; -import Carrito from './components/Carrito'; +import Details from './components/Details/Details'; +import Cart from './components/Cart/Cart'; +import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; +import Footer from './components/Fragments/Footer'; function App(): JSX.Element { return ( <> - + + + + }/> +
}/> + + +