Skip to content

Commit

Permalink
arreglar problema despliegue(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Feb 19, 2024
1 parent 9e591d4 commit 6c8014d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
18 changes: 7 additions & 11 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* import React, { useState } from 'react';
import React, { useState } from 'react';
import AddUser from './components/AddUser';
import Login from './components/Login';
import CssBaseline from '@mui/material/CssBaseline';
Expand All @@ -25,6 +25,7 @@ function App() {
// {showLogin ? <Login /> : <AddUser />} muestra el componente Login si showLogin es true, y AddUser en caso contrario
return (
<Container component="main" maxWidth="xs">

<CssBaseline />
<Typography component="h1" variant="h5" align="center" sx={{ marginTop: 2 }}>
WIQ_ES04C
Expand All @@ -41,11 +42,14 @@ function App() {
</Link>
)}
</Typography>

</Container>
);
}

export default App; */
export default App;

/*
import React from 'react';
import GenerateQuestion from './components/GenerateQuestion'; // Asegúrate de importar GenerateQuestion correctamente
import Login from './components/Login';
Expand All @@ -61,13 +65,5 @@ function App() {
<Typography component="h1" variant="h5" align="center" sx={{ marginTop: 2 }}>
Welcome to the 2024 edition of the Software Architecture course
</Typography>
{/* Aquí se muestra el componente GenerateQuestion */}
{ Aquí se muestra el componente GenerateQuestion */

<GenerateQuestion />

<Footer> </Footer>
</Container>
);
}

export default App;
2 changes: 1 addition & 1 deletion webapp/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/Welcome to the 2024 edition of the Software Architecture course/i);
const linkElement = screen.getByText(/WIQ_ES04C/i);
expect(linkElement).toBeInTheDocument();
});
2 changes: 2 additions & 0 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
/*funcion q representa la barra de navegacion superior*/
import Footer from './components/Footer';
import Navbar from './components/NavBar';
const root = ReactDOM.createRoot(document.getElementById('root'));

Expand All @@ -14,6 +15,7 @@ root.render(

<App />

<Footer></Footer>
</React.StrictMode>
);

Expand Down

0 comments on commit 6c8014d

Please sign in to comment.