Small fixes

This commit is contained in:
Reckless_Satoshi 2023-12-02 20:19:23 +00:00
parent 4fda9370fd
commit 25e6e82a9f
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 7 additions and 4 deletions

View File

@ -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)<MainBoxProps>((props) => ({
const Main: React.FC = () => {
const { t } = useTranslation();
const { settings, page, slideDirection, setOpen, windowSize, navbarHeight, hostUrl } =
const { settings, page, slideDirection, setOpen, windowSize, navbarHeight } =
useContext<UseAppStoreType>(AppContext);
const { federation, sortedCoordinators } = useContext<UseFederationStoreType>(FederationContext);
const { garage } = useContext<UseGarageStoreType>(GarageContext);
const onLoad = (): void => {

View File

@ -262,6 +262,11 @@ const RobotProfile = ({
</MenuItem>
) : (
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 (
<MenuItem key={index} value={slot.token}>
<Grid