Skip to content

Commit

Permalink
Merge pull request #982 from andrew-bierman/fix/edit_delete_removal
Browse files Browse the repository at this point in the history
Global items edit and delete removal
  • Loading branch information
andrew-bierman authored Jun 9, 2024
2 parents dcbf54d + 82414e5 commit 400f9ae
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions packages/app/components/itemtable/itemTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,49 +88,6 @@ export const ItemsTable = ({
<RText style={{ color: isDark ? 'white' : 'black' }}>
{category?.name || type}
</RText>,
authUser && authUser.id === ownerId ? (
<EditPackItemModal
key="edit-pack-item"
triggerComponent={
<MaterialIcons
name="edit"
size={20}
color={currentTheme.colors.primary}
/>
}
>
<AddItem
packId={id}
isEdit={true}
isItemPage
initialData={itemData}
editAsDuplicate={false}
setPage={setPage}
page={page}
/>
</EditPackItemModal>
) : (
''
),
authUser && authUser.id === ownerId ? (
<DeletePackItemModal
key="delete-pack-item"
onConfirm={(closeModal) => {
handleDeleteItem(id, closeModal);
}}
triggerComponent={
(
<MaterialIcons
name="delete"
size={20}
color={currentTheme.colors.error}
/>
) as any
}
/>
) : (
''
),
];
return (
<Row
Expand Down Expand Up @@ -194,8 +151,6 @@ export const ItemsTable = ({
'Weight',
'Quantity',
'Category',
'Edit',
'Delete',
].map((header, index) => (
<Cell
key={index}
Expand Down

0 comments on commit 400f9ae

Please sign in to comment.