Skip to content

Commit

Permalink
chore: type
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Dec 13, 2024
1 parent a10ea8b commit b9a11a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FishboneDiagram/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FishboneOptions } from '@ant-design/graphs';
import type { GraphOptions } from '@ant-design/graphs';
import { Fishbone as ADCFishbone } from '@ant-design/graphs';
import React, { useMemo } from 'react';
import { useGraphConfig } from '../ConfigProvider/hooks';
Expand All @@ -7,7 +7,7 @@ import { visTreeData2GraphData } from '../utils/graph';

export interface FishboneDiagramProps extends TreeGraphProps {}

const defaultConfig: FishboneOptions = {
const defaultConfig: GraphOptions = {
autoFit: 'view',
autoResize: true,
};
Expand All @@ -17,7 +17,7 @@ const FishboneDiagram: React.FC<FishboneDiagramProps> = (props) => {

const data = useMemo(() => visTreeData2GraphData(propsData), [propsData]);

const config = useGraphConfig<FishboneOptions>('FishboneDiagram', defaultConfig, restProps);
const config = useGraphConfig<GraphOptions>('FishboneDiagram', defaultConfig, restProps);

return <ADCFishbone data={data} {...config} />;
};
Expand Down

0 comments on commit b9a11a1

Please sign in to comment.