Skip to content

Commit

Permalink
fix: import type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
surajahmed committed Mar 30, 2022
1 parent adc8d1e commit be65430
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/composites/AlertDialog/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IBoxProps } from '../../primitives/Box';
import type { IIconButtonProps } from '../IconButton';
import type { MutableRefObject } from 'react';
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';

export interface InterfaceAlertDialogProps extends IBoxProps {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/Center/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';
import type { InterfaceBoxProps } from '../../../components/primitives/Box/types';

export interface InterfaceCenterProps extends InterfaceBoxProps<ICenterProps> {}
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/Code/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';
import type { InterfaceBoxProps } from '../../primitives/Box';

export type InterfaceCodeProps = InterfaceBoxProps<ICodeProps> & {
Expand Down
3 changes: 1 addition & 2 deletions src/components/composites/Collapse/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ViewStyle, LayoutAnimation, UIManager, Platform } from 'react-native';
import { Box } from '../../primitives';
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
import type { InterfaceBoxProps } from '../../primitives/Box';
// import type { CustomProps } from 'src/components/types';
export type InterfaceCollapseProps = InterfaceBoxProps<ICollapseProps> & {
style?: ViewStyle;
endingHeight?: number;
Expand Down Expand Up @@ -99,7 +98,7 @@ const Collapse = (
<Box
//@ts-ignore
overflow={Platform.OS === 'web' ? 'auto' : 'scroll'}
onLayout={(e) => provideSize(e.nativeEvent.layout)}
onLayout={(e: any) => provideSize(e.nativeEvent.layout)}
{...props}
/>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/Fab/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';
import type { InterfaceButtonProps } from '../../primitives/Button/types';

export interface InterfaceFabProps extends InterfaceButtonProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/FormControl/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';
import type { IBoxProps, IStackProps } from '../../primitives';

export interface InterfaceFormControlProps
Expand Down
2 changes: 1 addition & 1 deletion src/components/composites/KBD/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';
import type { InterfaceBoxProps } from '../../primitives/Box';
export type IKbdProps = InterfaceBoxProps<IKbdProps> | CustomProps<'Kbd'>;
2 changes: 1 addition & 1 deletion src/components/composites/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Box from '../../primitives/Box';
import type { InterfaceBoxProps } from '../../primitives/Box';
import { useId } from '@react-aria/utils';
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
import type { CustomProps } from 'src/components/types';
import type { CustomProps } from '../../../components/types/utils';

interface InterfaceTooltipProps extends InterfaceBoxProps<ITooltipProps> {
/**
Expand Down

0 comments on commit be65430

Please sign in to comment.