Merge pull request #342 from ninja-programmer/develop
feat(ui): position robot settings modal
This commit is contained in:
@@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { GenericModal } from "../ui/GenericModal";
|
import { GenericModal } from "../ui/GenericModal";
|
||||||
import { TextField, Typography, Box } from "@mui/material";
|
import { TextField, Typography, Box } from "@mui/material";
|
||||||
import { modalStyle } from "../recorder/AddWhereCondModal";
|
|
||||||
import { useGlobalInfoStore } from '../../context/globalInfo';
|
import { useGlobalInfoStore } from '../../context/globalInfo';
|
||||||
import { getStoredRecording } from '../../api/storage';
|
import { getStoredRecording } from '../../api/storage';
|
||||||
import { WhereWhatPair } from 'maxun-core';
|
import { WhereWhatPair } from 'maxun-core';
|
||||||
@@ -159,4 +158,16 @@ export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSe
|
|||||||
</>
|
</>
|
||||||
</GenericModal>
|
</GenericModal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const modalStyle = {
|
||||||
|
top: "40%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
width: "30%",
|
||||||
|
backgroundColor: "background.paper",
|
||||||
|
p: 4,
|
||||||
|
height: "fit-content",
|
||||||
|
display: "block",
|
||||||
|
padding: "20px",
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user