fix sorting for match table
This commit is contained in:
@@ -22,8 +22,6 @@ interface ViolationFile {
|
|||||||
violationCount: number;
|
violationCount: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ViolationDataResponse extends Array<ViolationFile> { }
|
|
||||||
|
|
||||||
export default function ViolationsTable() {
|
export default function ViolationsTable() {
|
||||||
const {
|
const {
|
||||||
data: violationData,
|
data: violationData,
|
||||||
@@ -121,7 +119,7 @@ export default function ViolationsTable() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'file',
|
accessorKey: 'fileName',
|
||||||
header: ({ column }) => (
|
header: ({ column }) => (
|
||||||
<div className="column start">
|
<div className="column start">
|
||||||
<span>
|
<span>
|
||||||
@@ -161,7 +159,7 @@ export default function ViolationsTable() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'violation',
|
accessorKey: 'violationCount',
|
||||||
header: ({ column }) => (
|
header: ({ column }) => (
|
||||||
<div className="column">
|
<div className="column">
|
||||||
<span>
|
<span>
|
||||||
@@ -194,7 +192,7 @@ export default function ViolationsTable() {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'date',
|
accessorKey: 'latestViolationDate',
|
||||||
header: ({ column }) => (
|
header: ({ column }) => (
|
||||||
<div className="column">
|
<div className="column">
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
Reference in New Issue
Block a user