Skip to content

Commit

Permalink
Define GridVisibility type locally in GridControl component.
Browse files Browse the repository at this point in the history
  • Loading branch information
annacmc committed Dec 20, 2024
1 parent e9487a4 commit 2a834f4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import { scaleLinear } from '@visx/scale';
import React from 'react';
import type { BaseChartProps } from '../shared/types';

// Define a type for grid visibility options
type GridVisibility = 'x' | 'y' | 'xy' | 'none';

interface GridControlProps extends BaseChartProps {
xScale: ReturnType< typeof scaleLinear >;
yScale: ReturnType< typeof scaleLinear >;
gridVisibility?: 'x' | 'y' | 'xy' | 'none';
gridVisibility?: GridVisibility;
top?: number;
}

Expand Down

0 comments on commit 2a834f4

Please sign in to comment.