From e1e346ad1f44626b8a3c687f7799db65180fea7b Mon Sep 17 00:00:00 2001 From: Mav-Ivan <110425368+Mav-Ivan@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:25:04 +0200 Subject: [PATCH] Change edit to rename (#1417) * change edit to rename * refactor code * refactored refactor --- .../my-resources/my-resources-table/MyResourcesTable.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/containers/my-resources/my-resources-table/MyResourcesTable.tsx b/src/containers/my-resources/my-resources-table/MyResourcesTable.tsx index 679b578a6..28395568e 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' @@ -88,7 +89,10 @@ const MyResourcesTable = ({ const rowActions: TableRowAction[] = [ { - label: t('common.edit'), + label: + resource === ResourcesTabsEnum.Categories + ? t('common.rename') + : t('common.edit'), func: onEdit }, {