feat: remove unused appshelf components

This commit is contained in:
Manuel Ruwe
2022-12-08 22:17:33 +01:00
parent afbf2d2d2f
commit b6bf6cc86b
12 changed files with 152 additions and 581 deletions

View File

@@ -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>
</>
);
};