Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon committed Mar 22, 2024
1 parent 8ddd97e commit a05806c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/CodeChangesTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useLeafyGreenTable } from "@leafygreen-ui/table";
import { FileDiffText } from "components/CodeChangesBadge";
import { StyledLink, WordBreak } from "components/styles";
import { BaseTable } from "components/Table/BaseTable";
import { TablePlaceholder } from "components/Table/TablePlaceholder";
import { FileDiffsFragment } from "gql/generated/types";

interface CodeChangesTableProps {
Expand All @@ -25,7 +24,6 @@ export const CodeChangesTable: React.FC<CodeChangesTableProps> = ({
<BaseTable
data-cy="code-changes-table"
data-cy-row="code-changes-table-row"
emptyComponent={<TablePlaceholder message="No diffs." />}
table={table}
shouldAlternateRowColor
/>
Expand All @@ -34,7 +32,6 @@ export const CodeChangesTable: React.FC<CodeChangesTableProps> = ({

const columns = [
{
id: "fileName",
accessorKey: "fileName",
header: "File Name",
meta: { width: "70%" },
Expand All @@ -55,13 +52,11 @@ const columns = [
),
},
{
id: "additions",
accessorKey: "additions",
header: "Additions",
cell: ({ getValue }) => <FileDiffText value={getValue()} type="+" />,
},
{
id: "deletions",
accessorKey: "deletions",
header: "Deletions",
cell: ({ getValue }) => <FileDiffText value={getValue()} type="-" />,
Expand Down

0 comments on commit a05806c

Please sign in to comment.