File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
src/components/ImageKitComponent Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import './App.css' ;
3- import { IKImage , IKContext , IKUpload } from '@imagekit/ imagekitio-react'
3+ import { IKImage , IKContext , IKUpload } from 'imagekitio-react'
44function 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"
Original file line number Diff line number Diff line change @@ -42,10 +42,5 @@ class ImageKitComponent extends PureComponent {
4242}
4343
4444ImageKitComponent . 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
5146export default ImageKitComponent ;
You can’t perform that action at this time.
0 commit comments