diff --git a/src/components/sectionList/listActions/DefaultListActions.tsx b/src/components/sectionList/listActions/DefaultListActions.tsx index 36933182..a723f4d2 100644 --- a/src/components/sectionList/listActions/DefaultListActions.tsx +++ b/src/components/sectionList/listActions/DefaultListActions.tsx @@ -16,16 +16,16 @@ export const DefaultListActions = ({ onOpenSharingClick, onDeleteClick, }: DefaultListActionProps) => { - const deleteAccess = canDeleteModel(model) - const editAccess = canEditModel(model) + const deletable = canDeleteModel(model) + const editable = canEditModel(model) return ( onShowDetailsClick(model)} onOpenSharingClick={() => onOpenSharingClick(model.id)} onDeleteClick={onDeleteClick} diff --git a/src/components/sectionList/listActions/SectionListActions.tsx b/src/components/sectionList/listActions/SectionListActions.tsx index 1dab8888..32f4ea0b 100644 --- a/src/components/sectionList/listActions/SectionListActions.tsx +++ b/src/components/sectionList/listActions/SectionListActions.tsx @@ -32,16 +32,16 @@ export const ActionEdit = ({ modelId }: { modelId: string }) => { type ActionMoreProps = { modelId: string - deleteAccess: boolean - editAccess: boolean + deletable: boolean + editable: boolean onShowDetailsClick: () => void onOpenSharingClick: () => void onDeleteClick: () => void } export const ActionMore = ({ modelId, - deleteAccess, - editAccess, + deletable, + editable, onOpenSharingClick, onShowDetailsClick, onDeleteClick, @@ -91,12 +91,12 @@ export const ActionMore = ({ /> } onClick={() => { @@ -107,12 +107,12 @@ export const ActionMore = ({ } onClick={() => {