chore(react): cleanup exports
This commit is contained in:
@@ -3,10 +3,10 @@ import cc from 'classcat';
|
||||
import { shallow } from 'zustand/shallow';
|
||||
|
||||
import { useStore } from '../../hooks/useStore';
|
||||
import { type ReactFlowState } from '../../types';
|
||||
import { BackgroundProps, BackgroundVariant } from './types';
|
||||
import { DotPattern, LinePattern } from './Patterns';
|
||||
import { containerStyle } from '../../styles/utils';
|
||||
import { type BackgroundProps, BackgroundVariant } from './types';
|
||||
import { type ReactFlowState } from '../../types';
|
||||
|
||||
const defaultSize = {
|
||||
[BackgroundVariant.Dots]: 1,
|
||||
@@ -16,7 +16,7 @@ const defaultSize = {
|
||||
|
||||
const selector = (s: ReactFlowState) => ({ transform: s.transform, patternId: `pattern-${s.rfId}` });
|
||||
|
||||
function Background({
|
||||
function BackgroundComponent({
|
||||
id,
|
||||
variant = BackgroundVariant.Dots,
|
||||
// only used for dots and cross
|
||||
@@ -87,6 +87,6 @@ function Background({
|
||||
);
|
||||
}
|
||||
|
||||
Background.displayName = 'Background';
|
||||
BackgroundComponent.displayName = 'Background';
|
||||
|
||||
export default memo(Background);
|
||||
export const Background = memo(BackgroundComponent);
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export { default as Background } from './Background';
|
||||
export * from './types';
|
||||
export { Background } from './Background';
|
||||
export { BackgroundVariant, type BackgroundProps } from './types';
|
||||
|
||||
Reference in New Issue
Block a user