Skip to content

Commit

Permalink
Merge pull request #31 from fga-eps-mds/115-fix-cadastro-movimentacao
Browse files Browse the repository at this point in the history
#115 fix: cadastro de movimentação
  • Loading branch information
JoaoVitorFarias authored Jun 5, 2023
2 parents 5ce95cc + 2539238 commit d7ea660
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/movement-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,23 @@ import { ControlledSelect } from '../form-fields/controlled-select';
import { Input } from '../form-fields/input';
import { toast } from '@/utils/toast';

enum movementType {
Borrow,
Dismiss,
Ownership,
}

interface equipamentData {
tippingNumber: string;

serialNumber: string;

id: string;
type: string;
model: string;
brand: { name: string };
}

interface movementEquipment {
tippingNumber: string;

serialNumber: string;

id: string;
selected?: boolean;
type: string;
model: string;
brand: { name: string };
}

interface unit {
Expand Down Expand Up @@ -249,7 +245,7 @@ export default function MovementForm({
</Grid>

<Text fontWeight="bold" mt={10}>
Especificação do material
Especificação do equipamento
</Text>

<TableContainer
Expand All @@ -275,8 +271,10 @@ export default function MovementForm({
<Table colorScheme="orange" size="sm">
<Thead bg="#F49320" fontWeight="semibold" h="14">
<Tr>
<Td color="white">N° Tombamento</Td>
<Td color="white">Equipamento</Td>
<Td color="white">Tombamento</Td>
<Td color="white">Marca</Td>
<Td color="white">Modelo</Td>
<Td color="white">N° Série</Td>
<Td color="white" />
</Tr>
Expand All @@ -291,9 +289,11 @@ export default function MovementForm({
: 'white'
}
>
<Td>{equipment.id}</Td>
<Td>{equipment.tippingNumber}</Td>
<Td>{equipment.serialNumber}</Td>
<Td>{equipment.type}</Td>
<Td>{equipment.brand.name}</Td>
<Td>{equipment.model}</Td>
<Td textAlign="center">{equipment.serialNumber}</Td>
<Td>
<Checkbox
onChange={toggleMaterial(equipment.id)}
Expand Down

0 comments on commit d7ea660

Please sign in to comment.