diff --git a/src/containers/my-resources/categories-container/CategoriesContainer.tsx b/src/containers/my-resources/categories-container/CategoriesContainer.tsx index 08d4a0a07..e22c6f590 100644 --- a/src/containers/my-resources/categories-container/CategoriesContainer.tsx +++ b/src/containers/my-resources/categories-container/CategoriesContainer.tsx @@ -167,8 +167,7 @@ const CategoriesContainer = () => { sort: sortOptions, itemsPerPage, resource: ResourcesTabsEnum.Categories, - sx: styles.table, - rename: true + sx: styles.table } return ( diff --git a/src/containers/my-resources/my-resources-table/MyResourcesTable.tsx b/src/containers/my-resources/my-resources-table/MyResourcesTable.tsx index af343b91c..c736267b7 100644 --- a/src/containers/my-resources/my-resources-table/MyResourcesTable.tsx +++ b/src/containers/my-resources/my-resources-table/MyResourcesTable.tsx @@ -15,7 +15,8 @@ import { ErrorResponse, TableItem, ResourcesTableData, - TableRowAction + TableRowAction, + ResourcesTabsEnum } from '~/types' import { roundedBorderTable } from '~/containers/my-cooperations/cooperations-container/CooperationContainer.styles' @@ -90,7 +91,10 @@ const MyResourcesTable = ({ const rowActions: TableRowAction[] = [ { - label: !rename ? t('common.edit') : t('common.rename'), + label: + resource === ResourcesTabsEnum.Categories + ? t('common.rename') + : t('common.edit'), func: onEdit }, {