1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-20 10:06:07 +07:00

chore(build): add missing export (#417)

Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
This commit is contained in:
Alfonso Austin
2020-01-14 01:43:31 -05:00
committed by Juan Picado @jotadeveloper
parent 1eca1f4079
commit d4f2720994
6 changed files with 35 additions and 33 deletions

View File

@@ -1,24 +1,6 @@
import { createContext, Consumer, Provider } from 'react';
import { PackageMetaInterface } from '../../../types/packageMeta';
export interface DetailContextProps {
packageMeta: PackageMetaInterface;
packageVersion?: string;
readMe: string;
packageName: string;
enableLoading: () => void;
isLoading: boolean;
hasNotBeenFound: boolean;
}
export interface VersionPageConsumerProps {
packageMeta: PackageMetaInterface;
readMe: string;
packageName: string;
packageVersion?: string;
// FIXME: looking for the appropiated type here
enableLoading: any;
}
import { DetailContextProps, VersionPageConsumerProps } from './version-config';
export const DetailContext = createContext<Partial<DetailContextProps>>({});