From 0f0fb44a8e13c058e75f050d5eb91e91e0f0fa6a Mon Sep 17 00:00:00 2001 From: Lara Date: Tue, 26 Mar 2024 17:34:39 +0100 Subject: [PATCH] quitar estadisticas si no estas logeado --- webapp/src/components/Pages/Layout.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/Pages/Layout.js b/webapp/src/components/Pages/Layout.js index 1710022..85fc82b 100644 --- a/webapp/src/components/Pages/Layout.js +++ b/webapp/src/components/Pages/Layout.js @@ -2,8 +2,6 @@ import { Outlet, Link } from "react-router-dom"; import React, { useState, useEffect } from 'react'; import {Container, Nav, Navbar, NavDropdown} from 'react-bootstrap'; - - const Layout = ({ isLogged, setIsLogged }) => { function onLogout(){ @@ -11,7 +9,6 @@ import {Container, Nav, Navbar, NavDropdown} from 'react-bootstrap'; setIsLogged(false); } - return ( <> @@ -20,7 +17,9 @@ import {Container, Nav, Navbar, NavDropdown} from 'react-bootstrap';