Skip to content

Commit

Permalink
removed image upload options but commented out instead of deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate Bicalho committed Mar 16, 2024
1 parent 670050b commit 8a8f148
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/components/AddItemButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,13 @@ function AddItemButton(props: {
onChange={handleChange}
error={buildingError}
/>
{/* <Form.Input
label="Image Upload"
name="imagePath"
type="file"
value={state.imagePath}
onChange={handleFileChange}
/> */}
{state.identifiable ? (
<Form.Group widths="equal">
<Form.Input
Expand Down
7 changes: 7 additions & 0 deletions client/src/components/EditItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ function EditItem(props: {
onChange={handleChange}
/>
</Form.Group>
{/* <Form.Input
label="Image Upload"
name="imagePath"
type="file"
value={state.imagePath}
onChange={handleFileChange}
/> */}
{state.identifiable ? (
<Form.Group widths="equal">
<Form.Input
Expand Down
12 changes: 12 additions & 0 deletions client/src/components/TableWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import ApproveSwitch from "./ApproveSwitch";
import AvailableSwitch from "./AvailableSwitch";
import EditButton from "./EditItem";
import HistoryAccordion from "./HistoryAccordion";
// import ImageModal from "./ImageModal";
import PublicDisplaySwitch from "./PublicDisplaySwitch";
import UnarchiveButton from "./UnarchiveButton";

Expand Down Expand Up @@ -122,6 +123,14 @@ const TableWidget = (props: {
>
Building
</Table.HeaderCell>
{/* <Table.HeaderCell
sorted={
props.sort.column === "image" ? props.sort.direction : undefined
}
onClick={() => changeSort("image")}
>
Image
</Table.HeaderCell> */}
{!props.isArchivedItems && props.isUser ? (
<Table.HeaderCell
sorted={
Expand Down Expand Up @@ -221,6 +230,9 @@ const TableWidget = (props: {
<Table.Cell>{item.whereFound}</Table.Cell>
<Table.Cell>{item.description}</Table.Cell>
<Table.Cell>{item.building}</Table.Cell>
{/* <Table.Cell>
<ImageModal image={item.image}></ImageModal>
</Table.Cell> */}
{!props.isArchivedItems && props.isUser ? (
<Table.Cell>
<PublicDisplaySwitch
Expand Down

0 comments on commit 8a8f148

Please sign in to comment.