Skip to content

Commit

Permalink
Change the edit and delete buttons style on tag names under table
Browse files Browse the repository at this point in the history
Signed-off-by: HadasahR <[email protected]>
  • Loading branch information
HadasahR committed Sep 29, 2024
1 parent cb7c653 commit b3d112c
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions client/src/app/pages/controls/tags/components/tag-table.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import React from "react";
import { useTranslation } from "react-i18next";
import {
Table,
Thead,
Tr,
Th,
Tbody,
Td,
ActionsColumn,
} from "@patternfly/react-table";
import { Table, Thead, Tr, Th, Tbody, Td } from "@patternfly/react-table";
import { Tag, TagCategory } from "@app/api/models";
import "./tag-table.css";
import { universalComparator } from "@app/utils/utils";
import { ControlTableActionButtons } from "../../ControlTableActionButtons";

export interface TabTableProps {
tagCategory: TagCategory;
Expand Down Expand Up @@ -41,17 +34,9 @@ export const TagTable: React.FC<TabTableProps> = ({
<Tr key={tag.name}>
<Td>{tag.name}</Td>
<Td isActionCell>
<ActionsColumn
items={[
{
title: t("actions.edit"),
onClick: () => onEdit(tag),
},
{
title: t("actions.delete"),
onClick: () => onDelete(tag),
},
]}
<ControlTableActionButtons
onEdit={() => onEdit(tag)}
onDelete={() => onDelete(tag)}
/>
</Td>
</Tr>
Expand Down

0 comments on commit b3d112c

Please sign in to comment.