fix
This commit is contained in:
parent
aa59eaa3fc
commit
2444f620f5
@ -40,14 +40,6 @@ const Navbar = () => {
|
||||
}, []);
|
||||
|
||||
|
||||
|
||||
|
||||
const roomItems = rooms.map((room, index) => (
|
||||
console.log(index),
|
||||
getItem(`sub${index}`, room.name)
|
||||
));
|
||||
|
||||
|
||||
const items = [
|
||||
<Menu.Item key="0">
|
||||
<Link to="/">Menu Principal</Link>
|
||||
@ -58,10 +50,7 @@ const Navbar = () => {
|
||||
<Menu.Item key="2" >
|
||||
<Link to="/items">Tous les articles</Link>
|
||||
</Menu.Item>,
|
||||
<SubMenu key="3" title="Chambres">
|
||||
{roomItems}
|
||||
</SubMenu>,
|
||||
<Menu.Item key="4" >
|
||||
<Menu.Item key="3" >
|
||||
<Link to="/rooms">Voir les chambres</Link>
|
||||
</Menu.Item>,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user