Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden committed Jun 7, 2024
1 parent 4eac5ef commit 3459992
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/RobotDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { api, Bom, Part } from "hooks/api";
import { api, Bom } from "hooks/api";
import { useAuthentication } from "hooks/auth";
import { useEffect, useState } from "react";
import {
Expand Down
13 changes: 9 additions & 4 deletions frontend/src/pages/RobotForm.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { api, Bom, Image, Robot } from "hooks/api";
import { api, Bom, Image, Part, Robot } from "hooks/api";
import { useAuthentication } from "hooks/auth";
import React, { ChangeEvent, FormEvent, useEffect, useState } from "react";
import { Button, Col, Form, Row } from "react-bootstrap";
import {Part} from "hooks/api";

const RobotForm: React.FC = () => {
const auth = useAuthentication();
Expand Down Expand Up @@ -172,8 +171,14 @@ const RobotForm: React.FC = () => {
onChange={(e) => handleBomChange(index, e)}
required
>
<option value="" disabled>Select a Part</option>
{parts.map((part, index) => <option key={index} value={part.part_id}>{part.part_name}</option>)}
<option value="" disabled>
Select a Part
</option>
{parts.map((part, index) => (
<option key={index} value={part.part_id}>
{part.part_name}
</option>
))}
</Form.Control>
Quantity:
<Form.Control
Expand Down

0 comments on commit 3459992

Please sign in to comment.