chore: lint
This commit is contained in:
@@ -4,7 +4,7 @@ import { WarningText } from '../../atoms/texts';
|
|||||||
import InfoIcon from "@mui/icons-material/Info";
|
import InfoIcon from "@mui/icons-material/Info";
|
||||||
|
|
||||||
export const ClickOnCoordinatesSettings = forwardRef((props, ref) => {
|
export const ClickOnCoordinatesSettings = forwardRef((props, ref) => {
|
||||||
const [settings, setSettings] = React.useState<number[]>([0,0]);
|
const [settings, setSettings] = React.useState<number[]>([0, 0]);
|
||||||
useImperativeHandle(ref, () => ({
|
useImperativeHandle(ref, () => ({
|
||||||
getSettings() {
|
getSettings() {
|
||||||
return settings;
|
return settings;
|
||||||
@@ -14,7 +14,7 @@ export const ClickOnCoordinatesSettings = forwardRef((props, ref) => {
|
|||||||
return (
|
return (
|
||||||
<Stack direction="column">
|
<Stack direction="column">
|
||||||
<TextField
|
<TextField
|
||||||
sx={{marginLeft: '15px', marginRight: '15px'}}
|
sx={{ marginLeft: '15px', marginRight: '15px' }}
|
||||||
type="number"
|
type="number"
|
||||||
label="X"
|
label="X"
|
||||||
onChange={(e) => setSettings(prevState => ([Number(e.target.value), prevState[1]]))}
|
onChange={(e) => setSettings(prevState => ([Number(e.target.value), prevState[1]]))}
|
||||||
@@ -22,7 +22,7 @@ export const ClickOnCoordinatesSettings = forwardRef((props, ref) => {
|
|||||||
defaultValue={settings[0]}
|
defaultValue={settings[0]}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
sx={{margin: '15px'}}
|
sx={{ margin: '15px' }}
|
||||||
type="number"
|
type="number"
|
||||||
label="Y"
|
label="Y"
|
||||||
onChange={(e) => setSettings(prevState => ([prevState[0], Number(e.target.value)]))}
|
onChange={(e) => setSettings(prevState => ([prevState[0], Number(e.target.value)]))}
|
||||||
@@ -30,7 +30,7 @@ export const ClickOnCoordinatesSettings = forwardRef((props, ref) => {
|
|||||||
defaultValue={settings[1]}
|
defaultValue={settings[1]}
|
||||||
/>
|
/>
|
||||||
<WarningText>
|
<WarningText>
|
||||||
<InfoIcon color='warning'/>
|
<InfoIcon color='warning' />
|
||||||
The click function will click on the given coordinates.
|
The click function will click on the given coordinates.
|
||||||
You need to put the coordinates by yourself.
|
You need to put the coordinates by yourself.
|
||||||
</WarningText>
|
</WarningText>
|
||||||
|
|||||||
Reference in New Issue
Block a user