diff --git a/src/frontend_socket/international-dataspace-station/app/dashboard/page.tsx b/src/frontend_socket/international-dataspace-station/app/dashboard/page.tsx index 12f2ed6..4ffa6d2 100644 --- a/src/frontend_socket/international-dataspace-station/app/dashboard/page.tsx +++ b/src/frontend_socket/international-dataspace-station/app/dashboard/page.tsx @@ -69,27 +69,27 @@ import React, { useState, useEffect } from 'react'; import checkConnectorStatus from "./connector_status"; import ConnectorStatus from "./connector_status"; -import { cookies } from "next/headers"; +// import { cookies } from "next/headers"; import portRoles from '../../data/ports.json'; export default function Page() { - const [prov, setProv] = useState(false); - const [currPort, setCurrPort] = useState(null); - const loggedIn = cookies().get('user')?.value ? JSON.parse(cookies().get('user').value) : null; - const ports = portRoles; - - useEffect(() => { - if (loggedIn) { - const userPort = ports.find(port => port.role === loggedIn.role)?.port; - setCurrPort(userPort); - } - }, [loggedIn]); + // const [prov, setProv] = useState(false); + // const [currPort, setCurrPort] = useState(null); + // const loggedIn = cookies().get('user')?.value ? JSON.parse(cookies().get('user').value) : null; + // const ports = portRoles; + // + // useEffect(() => { + // if (loggedIn) { + // const userPort = ports.find(port => port.role === loggedIn.role)?.port; + // setCurrPort(userPort); + // } + // }, [loggedIn]); return (
- +