Skip to content

Commit 1034c52

Browse files
committed
refactor: update TypeBadgeProps to use SchemaFilter type for schemaPaths and onSchemaSearch
1 parent 8fc16a1 commit 1034c52

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/modules/datasets/dataset/schema/TypeBadge.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DatasetSchemaQuery } from '@/graphql/dataprotector/graphql';
21
import { cn } from '@/lib/utils';
32
import React from 'react';
43
import {
@@ -12,20 +11,14 @@ import { borderTypeColor } from '../../borderTypeColor';
1211
import { SchemaFilter } from '../../schemaFilters';
1312

1413
export interface TypeBadgeProps {
15-
schemaPaths?: NonNullable<
16-
NonNullable<DatasetSchemaQuery['protectedData']>['schema']
17-
>;
14+
schemaPaths?: SchemaFilter[];
1815
isLoading?: boolean;
1916
maxVisible?: number;
2017
direction?: 'vertical' | 'horizontal';
2118
className?: string;
2219
overflowHidden?: boolean;
2320
enableTooltip?: boolean;
24-
onSchemaSearch?: (
25-
schema: NonNullable<
26-
NonNullable<DatasetSchemaQuery['protectedData']>['schema']
27-
>
28-
) => void;
21+
onSchemaSearch?: (schema: SchemaFilter) => void;
2922
}
3023

3124
const getBorderColor = (type: string) => {

0 commit comments

Comments
 (0)