tests & image-request on google & inspirobot & front
This commit is contained in:
@@ -2,9 +2,9 @@ import React, { useState, useEffect } from "react";
|
||||
import { Menu } from "antd";
|
||||
import { HomeOutlined } from "@ant-design/icons"
|
||||
import { Home } from "../../pages";
|
||||
import { getRoom } from "../../api/room";
|
||||
import { getRooms } from "../../api/room";
|
||||
import { isLoggedIn } from "../../api/authentication"
|
||||
import { Test } from "../../pages/test";
|
||||
import { Items } from "../../pages/items";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function getItem(key, label) {
|
||||
@@ -32,7 +32,7 @@ const Navbar = () => {
|
||||
console.log("NAVBAR EFFECT")
|
||||
isLoggedIn().then((user) => {
|
||||
if (user !== "Unauthorized") {
|
||||
getRoom().then((result) => {
|
||||
getRooms().then((result) => {
|
||||
setRooms(result);
|
||||
})
|
||||
}
|
||||
@@ -56,7 +56,7 @@ const Navbar = () => {
|
||||
<Link to="/home">Home</Link>
|
||||
</Menu.Item>,
|
||||
<Menu.Item key="2" >
|
||||
<Link to="/test">Test</Link>
|
||||
<Link to="/items">Tous les articles</Link>
|
||||
</Menu.Item>,
|
||||
<SubMenu key="3" title="Chambres">
|
||||
{roomItems}
|
||||
|
Reference in New Issue
Block a user