From e4418cb5282894cb61c011312cdb55d8bfa65499 Mon Sep 17 00:00:00 2001 From: Fernando Jose Gonzalez Sierra Date: Tue, 9 Apr 2024 10:26:48 +0200 Subject: [PATCH] Fix --- questionservice/Dockerfile | 2 +- webapp/src/App.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/questionservice/Dockerfile b/questionservice/Dockerfile index 5915294..32ab47f 100644 --- a/questionservice/Dockerfile +++ b/questionservice/Dockerfile @@ -14,7 +14,7 @@ RUN npm install axios RUN npm install # Copy the app source code to the working directory -COPY . . +COPY . . /usr/src/questionservice/ # Define the command to run your app CMD ["node", "server.js"] diff --git a/webapp/src/App.js b/webapp/src/App.js index 1a23d35..94af2ac 100644 --- a/webapp/src/App.js +++ b/webapp/src/App.js @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { BrowserRouter as Router, Routes, Route, Navigate } from "react-router-dom"; +import { useNavigate, BrowserRouter as Router, Routes, Route } from "react-router-dom"; import AddUser from './components/AddUser'; import Layout from './components/Pages/Layout'; import Home from './components/Pages/Home'; @@ -7,9 +7,6 @@ import Login from './components/Login'; import Juego from './components/Pages/Juego'; import Estadisticas from './components/Pages/Estadisticas'; import NotFound from './components/Pages/NotFound'; -import { useNavigate } from 'react-router-dom'; - - function App() { const [isLogged, setIsLogged] = useState(false); @@ -40,7 +37,6 @@ function App() { } return ( - <> @@ -59,7 +55,6 @@ function App() { - ); }