Skip to content

Instantly share code, notes, and snippets.

@broguinn
Created December 10, 2025 16:17
Show Gist options
  • Select an option

  • Save broguinn/2a04aa5189703c5e769a9187fbc4d315 to your computer and use it in GitHub Desktop.

Select an option

Save broguinn/2a04aa5189703c5e769a9187fbc4d315 to your computer and use it in GitHub Desktop.
diff --git a/apps/parking-web/src/components/VehicleDetectionGrid.tsx b/apps/parking-web/src/components/VehicleDetectionGrid.tsx
index 20475791..b6d27328 100644
--- a/apps/parking-web/src/components/VehicleDetectionGrid.tsx
+++ b/apps/parking-web/src/components/VehicleDetectionGrid.tsx
@@ -2,28 +2,16 @@
import React from 'react';
import { VehicleDetectionGrid as SharedVehicleDetectionGrid } from 'shared';
+import { YardVehicleRecognitionFiltersFragmentDoc } from '@shared/generated/graphql';
-import { gql, FragmentType } from '../generated';
-
-const yardVehicleRecognitionFiltersFragment = gql(`
- fragment yardVehicleRecognitionFilters on Yard {
- id
- shouldAIAnalize
- fullName
- lanes {
- id
- type
- userFacingName
- }
- }
-`);
+import { FragmentType } from '../generated';
interface ParkingVehicleDetectionGridProps {
hideFilters?: boolean;
defaultYardId?: string;
defaultLaneType?: string;
defaultStartDate?: Date;
- yards: Array<FragmentType<typeof yardVehicleRecognitionFiltersFragment>>;
+ yards: Array<FragmentType<typeof YardVehicleRecognitionFiltersFragmentDoc>>;
}
export const VehicleDetectionGrid: React.FC<ParkingVehicleDetectionGridProps> = (props) => (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment