Skip to content

Commit

Permalink
fix(loader): bring back types file
Browse files Browse the repository at this point in the history
  • Loading branch information
honarpour committed Dec 23, 2021
1 parent ef8c426 commit f06779c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/Loader/Loader.tsx
@@ -1,14 +1,7 @@
import * as sc from './styles';
import { LoaderProps } from './types';
import { Box } from '../Box';

export type LoaderVariant = 'basic' | 'dots' | 'outlined' | 'screen';

export type LoaderProps = {
variant: LoaderVariant;
small?: boolean;
details?: string;
};

const LoadingDefault = (props: LoaderProps) => (
<sc.Loader {...props}>
<span />
Expand Down
1 change: 1 addition & 0 deletions src/components/Loader/index.ts
@@ -1 +1,2 @@
export * from './Loader';
export * from './types';
7 changes: 7 additions & 0 deletions src/components/Loader/types.ts
@@ -0,0 +1,7 @@
export type LoaderVariant = 'basic' | 'dots' | 'outlined' | 'screen';

export type LoaderProps = {
variant: LoaderVariant;
small?: boolean;
details?: string;
};

0 comments on commit f06779c

Please sign in to comment.