Skip to content

Commit

Permalink
remove generics
Browse files Browse the repository at this point in the history
  • Loading branch information
rdonigian committed Dec 31, 2024
1 parent c08f5b3 commit 23cc13e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/EngagementDataGrid/EngagementColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ import { Link } from '../Routing';
import { EngagementDataGridRowFragment as Engagement } from './engagementDataGridRow.graphql';

export const EngagementColumns: Array<GridColDef<Engagement>> = [
ProjectNameColumn<Engagement>({
ProjectNameColumn({
field: 'project.name',
valueGetter: (_, p) => p.project,
}),
IDColumn<Engagement>({
IDColumn({
field: 'Engagement',
valueGetter: (_, p) => p,
title: 'Engagement',
Expand Down Expand Up @@ -185,7 +185,7 @@ export const EngagementColumns: Array<GridColDef<Engagement>> = [
},
filterable: false,
},
SensitivityColumn<Engagement>({
SensitivityColumn({
field: 'project.sensitivity',
valueGetter: (_, p) => p.project,
}),
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProjectDataGrid/ProjectColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { SensitivityColumn } from '../Grid/Columns/SensitivityColumn';
import { ProjectDataGridRowFragment as Project } from './projectDataGridRow.graphql';

export const ProjectColumns: Array<GridColDef<Project>> = [
ProjectNameColumn<Project>({
ProjectNameColumn({
field: 'name',
headerName: 'Name',
valueGetter: (_, p) => p,
Expand Down Expand Up @@ -86,7 +86,7 @@ export const ProjectColumns: Array<GridColDef<Project>> = [
...dateColumn(),
valueGetter: dateColumn.valueGetter((_, { mouEnd }) => mouEnd.value),
},
SensitivityColumn<Project>({
SensitivityColumn({
field: 'sensitivity',
valueGetter: (_, p) => p,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export const ExpansionMarker = 'expandable';

export const ProgressReportIdsColumnMap = {
project: ProjectNameColumn<ProgressReport>({
field: 'engagement.project.name',
field: 'parent.engagement.project.name',
valueGetter: (_, p) => p.parent.project,
}),
language: LanguageNameColumn<ProgressReport>({
field: 'engagement.language.name',
field: 'parent.engagement.language.name',
valueGetter: (_, p) => p.parent.language.value!,
}),
viewReport: IDColumn<ProgressReport>({
Expand Down

0 comments on commit 23cc13e

Please sign in to comment.