File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22import React , { createContext } from 'react' ;
33import { InferProps } from 'prop-types' ;
44import ImageKit from 'imagekit-javascript' ;
5- import { IKContextCombinedProps , IKContextExtractedProps } from "./props" ;
5+ import { IKContextProps , IKContextExtractedProps } from "./props" ;
66
77// Create the context
88export const ImageKitContext = createContext < IKContextExtractedProps > ( { } ) ;
@@ -16,7 +16,7 @@ export const ImageKitContext = createContext<IKContextExtractedProps>({});
1616 * <Image src={link}/>
1717 *</IKContext>
1818 */
19- const IKContext = ( props : React . PropsWithChildren < IKContextCombinedProps > ) => {
19+ const IKContext = ( props : React . PropsWithChildren < IKContextProps > ) => {
2020
2121 const extractContextOptions = ( mergedOptions : InferProps < IKContextExtractedProps > ) => {
2222 var result : IKContextExtractedProps = { } ;
Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ const Props = {
77 authenticator : PropTypes . func
88} ;
99
10- export const IKContextCombinedProps = {
10+ export const IKContextProps = {
1111 ...Props ,
1212 transformationPosition : PropTypes . oneOf ( [ 'path' , 'query' ] ) ,
1313} ;
1414
1515export const IKContextExtractedProps = {
16- ...IKContextCombinedProps ,
16+ ...IKContextProps ,
1717 ikClient : PropTypes . instanceOf ( ImageKit ) ,
1818} ;
1919
20- export type IKContextCombinedProps = InferProps < typeof IKContextCombinedProps > & {
20+ export type IKContextProps = InferProps < typeof IKContextProps > & {
2121 urlEndpoint ?: string ;
2222} ;
2323
You can’t perform that action at this time.
0 commit comments