Skip to content

Commit

Permalink
Revertir el revert y volver al commit de arreglar el despliegue
Browse files Browse the repository at this point in the history
  • Loading branch information
bidof committed Feb 19, 2024
1 parent 1b8c833 commit af82de0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 40 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

1 change: 0 additions & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@
"puppeteer": "^21.7.0",
"serve": "^14.2.1",
"start-server-and-test": "^2.0.3"

}
}
33 changes: 6 additions & 27 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,49 +46,28 @@ function App() {
}
export default App; */
import React, { useState } from 'react';
import AddUser from './components/AddUser';
import React from 'react';
import GenerateQuestion from './components/GenerateQuestion'; // Asegúrate de importar GenerateQuestion correctamente
import Login from './components/Login';
import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';
import Link from '@mui/material/Link';
import Footer from './components/Footer';
function App() {


const [showLogin, setShowLogin] = useState(true);

const handleToggleView = () => {
setShowLogin(!showLogin);
};

return (

<Container component="main" maxWidth="xs">
<CssBaseline />


<Typography component="h1" variant="h5" align="center" sx={{ marginTop: 2 }}>
wiq_es04c
{showLogin ? <Login /> : <AddUser />}
{showLogin ? (
<Link name="gotoregister" component="button" variant="body2" onClick={handleToggleView}>
Don't have an account? Register here.
</Link>
) : (
<Link component="button" variant="body2" onClick={handleToggleView}>
Already have an account? Login here.
</Link>
)}

Welcome to the 2024 edition of the Software Architecture course
</Typography>
{/* 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(/wiq_es04c/i);
const linkElement = screen.getByText(/Welcome to the 2024 edition of the Software Architecture course/i);
expect(linkElement).toBeInTheDocument();
});
5 changes: 0 additions & 5 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import App from './App';
import reportWebVitals from './reportWebVitals';
/*funcion q representa la barra de navegacion superior*/
import Navbar from './components/NavBar';
import Footer from './components/Footer';

const root = ReactDOM.createRoot(document.getElementById('root'));

root.render(
Expand All @@ -16,9 +14,6 @@ root.render(

<App />


<Footer> </Footer>

</React.StrictMode>
);

Expand Down

0 comments on commit af82de0

Please sign in to comment.