chore: remove unused code
This commit is contained in:
@@ -59,17 +59,8 @@ interface RobotSettingsProps {
|
|||||||
|
|
||||||
export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => {
|
export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => {
|
||||||
const [robot, setRobot] = useState<RobotSettings | null>(null);
|
const [robot, setRobot] = useState<RobotSettings | null>(null);
|
||||||
// const [settings, setSettings] = useState<RobotEditOptions>({
|
|
||||||
// name: '',
|
|
||||||
// });
|
|
||||||
|
|
||||||
// const [userEmail, setUserEmail] = useState<string | null>(null);
|
|
||||||
const { recordingId, notify } = useGlobalInfoStore();
|
const { recordingId, notify } = useGlobalInfoStore();
|
||||||
|
|
||||||
// const handleChange = (field: keyof RobotEditOptions, value: string | number | boolean) => {
|
|
||||||
// setSettings(prev => ({ ...prev, [field]: value }));
|
|
||||||
// };
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
getRobot();
|
getRobot();
|
||||||
@@ -137,23 +128,6 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// const lastPair = robot?.recording.workflow[robot?.recording.workflow.length - 1];
|
|
||||||
|
|
||||||
// Find the `goto` action in `what` and retrieve its arguments
|
|
||||||
// const targetUrl = lastPair?.what.find(action => action.action === "goto")?.args?.[0];
|
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// const fetchUserEmail = async () => {
|
|
||||||
// if (robot && robot.userId) {
|
|
||||||
// const userData = await getUserById(robot.userId.toString());
|
|
||||||
// if (userData && userData.user) {
|
|
||||||
// setUserEmail(userData.user.email);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
// fetchUserEmail();
|
|
||||||
// }, [robot?.userId]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GenericModal
|
<GenericModal
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
|
|||||||
Reference in New Issue
Block a user