Skip to content

Commit 548a9da

Browse files
author
xwj02155382
committed
fix: Modify the style import method
1 parent 016ebbb commit 548a9da

File tree

3 files changed

+409
-6
lines changed

3 files changed

+409
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import useInteractive from './useInteractive';
1111
import { FormattedMessage } from 'react-intl';
1212
import { useGraphContext } from '..';
1313
import { useContext } from './useContext';
14-
import reactflowCss from 'reactflow/dist/style.css?raw';
14+
import reactFLowStyle from './reactflowStyle'
1515

1616

1717
interface ISchemaGraphProps {
@@ -38,7 +38,7 @@ const SchemaGraph: React.FunctionComponent<ISchemaGraphProps> = props => {
3838
disabled = false,
3939
graphId,
4040
} = useGraphContext();
41-
useDynamicStyle(reactflowCss, 'reactflow-dynamic-styles');
41+
useDynamicStyle(reactFLowStyle, 'reactflow-dynamic-styles');
4242
const description = (
4343
<FormattedMessage
4444
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)