Skip to content

Commit 6ed652a

Browse files
committed
Sample app dependency updated
1 parent f60c0b2 commit 6ed652a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

samples/sample-app/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import './App.css';
3-
import { IKImage, IKContext, IKUpload } from '@imagekit/imagekitio-react'
3+
import { IKImage, IKContext, IKUpload } from 'imagekitio-react'
44
function App() {
55
const publicKey = process.env.REACT_APP_PUBLIC_KEY;
66
const urlEndpoint = process.env.REACT_APP_URL_ENDPOINT;
@@ -60,7 +60,7 @@ function App() {
6060

6161
<p>Progressive image loading wihtout lazy loading</p>
6262
<IKImage
63-
path="/custom.jpg"
63+
path={path}
6464
transformation={[{
6565
"height": "200",
6666
"width": "200"

src/components/ImageKitComponent/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,5 @@ class ImageKitComponent extends PureComponent {
4242
}
4343

4444
ImageKitComponent.contextType = ImageKitContextType;
45-
ImageKitComponent.publicKey = PropTypes.string;
46-
ImageKitComponent.urlEndpoint = PropTypes.string;
47-
ImageKitComponent.src = PropTypes.string;
48-
ImageKitComponent.path = PropTypes.string;
49-
ImageKitComponent.transformation = PropTypes.arrayOf(PropTypes.object)
5045

5146
export default ImageKitComponent;

0 commit comments

Comments
 (0)