Skip to content

Commit b58fb8a

Browse files
authored
Merge pull request #740 from GraphScope/fix-style-introduction
fix: Modify style import
2 parents 74aa02e + 548a9da commit b58fb8a

File tree

2 files changed

+411
-3
lines changed

2 files changed

+411
-3
lines changed

packages/studio-graph-editor/src/canvas/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import React, { CSSProperties, useEffect } from 'react';
22
import { ReactFlow, Controls, Background, MiniMap } from 'reactflow';
3-
import { EmptyCanvas, useStudioProvier, Utils } from '@graphscope/studio-components';
3+
import { EmptyCanvas, useStudioProvier, Utils,useDynamicStyle } from '@graphscope/studio-components';
44
import { nodeTypes } from '../elements/node-types';
55
import { edgeTypes } from '../elements/edge-types';
66
import ConnectionLine from '../elements/connection-line';
77
import ArrowMarker from '../elements/arrow-marker';
88
import { PlayCircleOutlined } from '@ant-design/icons';
99
import ButtonController from '../button-controller';
10-
1110
import useInteractive from './useInteractive';
1211
import { FormattedMessage } from 'react-intl';
1312
import { useGraphContext } from '..';
14-
// import 'reactflow/dist/style.css';
1513
import { useContext } from './useContext';
14+
import reactFLowStyle from './reactflowStyle'
15+
1616

1717
interface ISchemaGraphProps {
1818
children?: React.ReactNode;
@@ -38,6 +38,7 @@ const SchemaGraph: React.FunctionComponent<ISchemaGraphProps> = props => {
3838
disabled = false,
3939
graphId,
4040
} = useGraphContext();
41+
useDynamicStyle(reactFLowStyle, 'reactflow-dynamic-styles');
4142
const description = (
4243
<FormattedMessage
4344
id="Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset"

0 commit comments

Comments
 (0)