From 25e6e82a9f0509733e368e79c31eabfebcabfe8f Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sat, 2 Dec 2023 20:19:23 +0000 Subject: [PATCH] Small fixes --- frontend/src/basic/Main.tsx | 6 ++---- frontend/src/basic/RobotPage/RobotProfile.tsx | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/basic/Main.tsx b/frontend/src/basic/Main.tsx index 989c997b..0ba4318e 100644 --- a/frontend/src/basic/Main.tsx +++ b/frontend/src/basic/Main.tsx @@ -1,4 +1,4 @@ -import React, { useContext, useEffect } from 'react'; +import React, { useContext } from 'react'; import { MemoryRouter, BrowserRouter, Routes, Route } from 'react-router-dom'; import { Box, Slide, Typography, styled } from '@mui/material'; import { type UseAppStoreType, AppContext, closeAll } from '../contexts/AppContext'; @@ -8,7 +8,6 @@ import RobotAvatar from '../components/RobotAvatar'; import Notifications from '../components/Notifications'; import { useTranslation } from 'react-i18next'; -import { FederationContext, type UseFederationStoreType } from '../contexts/FederationContext'; import { GarageContext, type UseGarageStoreType } from '../contexts/GarageContext'; const Router = window.NativeRobosats === undefined ? BrowserRouter : MemoryRouter; @@ -30,9 +29,8 @@ const MainBox = styled(Box)((props) => ({ const Main: React.FC = () => { const { t } = useTranslation(); - const { settings, page, slideDirection, setOpen, windowSize, navbarHeight, hostUrl } = + const { settings, page, slideDirection, setOpen, windowSize, navbarHeight } = useContext(AppContext); - const { federation, sortedCoordinators } = useContext(FederationContext); const { garage } = useContext(GarageContext); const onLoad = (): void => { diff --git a/frontend/src/basic/RobotPage/RobotProfile.tsx b/frontend/src/basic/RobotPage/RobotProfile.tsx index f0835db6..383f27f2 100644 --- a/frontend/src/basic/RobotPage/RobotProfile.tsx +++ b/frontend/src/basic/RobotPage/RobotProfile.tsx @@ -262,6 +262,11 @@ const RobotProfile = ({ ) : ( Object.values(garage.slots).map((slot: Slot, index: number) => { + console.log('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); + console.log(slot); + console.log(slot.getRobot()); + console.log(slot?.getRobot()?.hashId); + console.log('BBBBBBBBBBBBBBBBBBBBBBBBBBBB'); return (