Skip to content

Commit 4b16cdb

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
updated prop name
1 parent dfd09c4 commit 4b16cdb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/IKContext/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { createContext } from 'react';
33
import { InferProps } from 'prop-types';
44
import ImageKit from 'imagekit-javascript';
5-
import { IKContextCombinedProps, IKContextExtractedProps } from "./props";
5+
import { IKContextProps, IKContextExtractedProps } from "./props";
66

77
// Create the context
88
export 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 = {};

src/components/IKContext/props.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1515
export 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

0 commit comments

Comments
 (0)