Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Dec 11, 2024
1 parent d663a5d commit ae71978
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/graphs/src/components/fishbone/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NodeData } from '@antv/g6';
import { GraphOptions } from '../../types';
import type { GraphOptions } from '../../types';

export interface FishboneOptions extends GraphOptions {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NodeData } from '@antv/g6';
import { GraphOptions } from '../../types';
import type { GraphOptions } from '../../types';

export interface FlowDirectionGraphOptions extends GraphOptions {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/graphs/src/components/indented-tree/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NodeData } from '@antv/g6';
import type { NodeData } from '@antv/g6';
import type { GraphOptions } from '../../types';

export interface IndentedTreeOptions extends GraphOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface OrganizationChartNodeProps extends Pick<React.HTMLAttributes<HT
const StyledWrapper = styled.div<{ $color?: string; $isActive?: boolean }>`
height: inherit;
width: inherit;
border-radius: 4px;
border-radius: 8px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
position: relative;
border: none;
Expand All @@ -34,14 +34,14 @@ const StyledWrapper = styled.div<{ $color?: string; $isActive?: boolean }>`
props.$isActive &&
css`
transform: translate(-3px, -3px);
border: 3px solid #1783ff;
border: 2px solid #1783ff;
`}
.org-chart-node-line {
width: 100%;
height: 6px;
background-color: ${(props) => props.$color};
border-radius: 2px 2px 0 0;
border-radius: 8px 8px 0 0;
}
.org-chart-node-content {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphs/src/core/utils/label.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NodeData } from '@antv/g6';
import type { NodeData } from '@antv/g6';
import { get } from 'lodash';

export function formatLabel(datum: NodeData, labelField?: string | ((datum: NodeData) => string)): string {
Expand Down

0 comments on commit ae71978

Please sign in to comment.