mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
feat: remove unused appshelf components
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { Grid, NumberInput } from '@mantine/core';
|
||||
import { useForm } from '@mantine/form';
|
||||
import { ContextModalProps } from '@mantine/modals';
|
||||
import { TileBaseType } from '../../../../types/tile';
|
||||
|
||||
export const ChangePositionModal = ({
|
||||
context,
|
||||
id,
|
||||
innerProps,
|
||||
}: ContextModalProps<{ type: 'service' | 'type'; tile: TileBaseType }>) => {
|
||||
const form = useForm({
|
||||
initialValues: {
|
||||
area: innerProps.tile.area,
|
||||
shape: innerProps.tile.shape,
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid>
|
||||
<Grid.Col xs={12} md={6}>
|
||||
<NumberInput label="X Position" {...form.getInputProps('area.tile.shape.location.x')} />
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col xs={12} md={6}>
|
||||
<NumberInput label="Y Position" {...form.getInputProps('area.tile.shape.location.y')} />
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user