Skip to content

Commit

Permalink
🐛 fix: react-flow-attribution remove
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu authored and ModestFun committed Sep 20, 2023
1 parent 6f04a31 commit d2705e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProFlow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ProFlowController from '@/ProFlowController';
import { useMemo, type CSSProperties, type MouseEvent as ReactMouseEvent } from 'react';
import React, { useMemo, type CSSProperties, type MouseEvent as ReactMouseEvent } from 'react';
import ReactFlow, { Background, BackgroundVariant, Edge, Node } from 'reactflow';
import { ProFLowEdge, ProFlowNode } from './constants';
import { convertMappingFrom, getRenderData } from './helper';
Expand Down
4 changes: 4 additions & 0 deletions src/ProFlow/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export const useStyles = createStyles(({ css }) => ({
width: 100%;
height: 100%;
.react-flow__attribution {
display: none;
}
.${INIT_NODE} {
padding: 0;
box-sizing: border-box;
Expand Down
1 change: 1 addition & 0 deletions src/ProFlowController/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ExpandOutlined, MinusOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, Space, Tooltip } from 'antd';
import { createStyles } from 'antd-style';
import React from 'react';
import { MiniMap, useReactFlow, useViewport } from 'reactflow';

const useStyles = createStyles(({ css }) => ({
Expand Down

0 comments on commit d2705e9

Please sign in to comment.