mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 10:31:35 +00:00
Small fixes
This commit is contained in:
parent
4fda9370fd
commit
25e6e82a9f
@ -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 { MemoryRouter, BrowserRouter, Routes, Route } from 'react-router-dom';
|
||||||
import { Box, Slide, Typography, styled } from '@mui/material';
|
import { Box, Slide, Typography, styled } from '@mui/material';
|
||||||
import { type UseAppStoreType, AppContext, closeAll } from '../contexts/AppContext';
|
import { type UseAppStoreType, AppContext, closeAll } from '../contexts/AppContext';
|
||||||
@ -8,7 +8,6 @@ import RobotAvatar from '../components/RobotAvatar';
|
|||||||
import Notifications from '../components/Notifications';
|
import Notifications from '../components/Notifications';
|
||||||
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FederationContext, type UseFederationStoreType } from '../contexts/FederationContext';
|
|
||||||
import { GarageContext, type UseGarageStoreType } from '../contexts/GarageContext';
|
import { GarageContext, type UseGarageStoreType } from '../contexts/GarageContext';
|
||||||
|
|
||||||
const Router = window.NativeRobosats === undefined ? BrowserRouter : MemoryRouter;
|
const Router = window.NativeRobosats === undefined ? BrowserRouter : MemoryRouter;
|
||||||
@ -30,9 +29,8 @@ const MainBox = styled(Box)<MainBoxProps>((props) => ({
|
|||||||
|
|
||||||
const Main: React.FC = () => {
|
const Main: React.FC = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { settings, page, slideDirection, setOpen, windowSize, navbarHeight, hostUrl } =
|
const { settings, page, slideDirection, setOpen, windowSize, navbarHeight } =
|
||||||
useContext<UseAppStoreType>(AppContext);
|
useContext<UseAppStoreType>(AppContext);
|
||||||
const { federation, sortedCoordinators } = useContext<UseFederationStoreType>(FederationContext);
|
|
||||||
const { garage } = useContext<UseGarageStoreType>(GarageContext);
|
const { garage } = useContext<UseGarageStoreType>(GarageContext);
|
||||||
|
|
||||||
const onLoad = (): void => {
|
const onLoad = (): void => {
|
||||||
|
@ -262,6 +262,11 @@ const RobotProfile = ({
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
) : (
|
) : (
|
||||||
Object.values(garage.slots).map((slot: Slot, index: number) => {
|
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 (
|
return (
|
||||||
<MenuItem key={index} value={slot.token}>
|
<MenuItem key={index} value={slot.token}>
|
||||||
<Grid
|
<Grid
|
||||||
|
Loading…
Reference in New Issue
Block a user