From 451a0675652b3e66b98de43fc45c917b21aa08ce Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 5 Aug 2024 23:32:24 +0530 Subject: [PATCH] chore: delete clickOnCoordinates.tsx --- .../action-settings/clickOnCoordinates.tsx | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/components/molecules/action-settings/clickOnCoordinates.tsx diff --git a/src/components/molecules/action-settings/clickOnCoordinates.tsx b/src/components/molecules/action-settings/clickOnCoordinates.tsx deleted file mode 100644 index c68a53b0..00000000 --- a/src/components/molecules/action-settings/clickOnCoordinates.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React, { forwardRef, useImperativeHandle } from 'react'; -import { Stack, TextField } from "@mui/material"; -import { WarningText } from '../../atoms/texts'; -import InfoIcon from "@mui/icons-material/Info"; - -export const ClickOnCoordinatesSettings = forwardRef((props, ref) => { - const [settings, setSettings] = React.useState([0, 0]); - useImperativeHandle(ref, () => ({ - getSettings() { - return settings; - } - })); - - return ( - - setSettings(prevState => ([Number(e.target.value), prevState[1]]))} - required - defaultValue={settings[0]} - /> - setSettings(prevState => ([prevState[0], Number(e.target.value)]))} - required - defaultValue={settings[1]} - /> - - - The click function will click on the given coordinates. - You need to put the coordinates by yourself. - - - ); -});