From 30a11432b9c471c04cf33c02d983e3779d9655dc Mon Sep 17 00:00:00 2001 From: bidof Date: Fri, 8 Mar 2024 11:59:23 +0100 Subject: [PATCH] arreglar mas fallos de importacion --- webapp/src/components/navbar/NavBar.js | 4 ++-- webapp/src/index.js | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/webapp/src/components/navbar/NavBar.js b/webapp/src/components/navbar/NavBar.js index 71414b3..3a334a5 100644 --- a/webapp/src/components/navbar/NavBar.js +++ b/webapp/src/components/navbar/NavBar.js @@ -1,7 +1,7 @@ import React ,{useContext} from 'react'; -import '../styles/Navbar.css'; +import './Navbar.css'; import { Link } from 'react-router-dom'; -import { AuthContext } from './authcontext'; +import { AuthContext } from '../authcontext'; import { Dropdown, Nav } from 'react-bootstrap'; const Navbar = () => { diff --git a/webapp/src/index.js b/webapp/src/index.js index 35de467..35fbc7d 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -1,12 +1,10 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import App from './App'; import reportWebVitals from './reportWebVitals'; -import Footer from './components/Footer'; -import Navbar from './components/NavBar'; -import AddUser from './components/AddUser'; -import Login from './components/Login'; +import Navbar from './components/navbar/NavBar'; +import AddUser from './components/adduser/AddUser'; +import Login from './components/login/Login'; import { AuthProvider } from './components/authcontext'; import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import CssBaseline from '@mui/material/CssBaseline';