Skip to content

Commit

Permalink
Change edit to rename (#1417)
Browse files Browse the repository at this point in the history
* change edit to rename

* refactor code

* refactored refactor
  • Loading branch information
Mav-Ivan authored Nov 17, 2023
1 parent 7826365 commit e1e346a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
ErrorResponse,
TableItem,
ResourcesTableData,
TableRowAction
TableRowAction,
ResourcesTabsEnum
} from '~/types'
import { roundedBorderTable } from '~/containers/my-cooperations/cooperations-container/CooperationContainer.styles'

Expand Down Expand Up @@ -88,7 +89,10 @@ const MyResourcesTable = <T extends TableItem>({

const rowActions: TableRowAction[] = [
{
label: t('common.edit'),
label:
resource === ResourcesTabsEnum.Categories
? t('common.rename')
: t('common.edit'),
func: onEdit
},
{
Expand Down

0 comments on commit e1e346a

Please sign in to comment.