@bigbinary/neeto-image-uploader-frontend 1.4.6 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,7 +18,6 @@
18
18
  - [Frontend package development](#frontend-package-development)
19
19
  - [Setup](#setup)
20
20
 
21
-
22
21
  # General information
23
22
 
24
23
  - This nano deals with accessing assets across projects for an organization.
@@ -66,7 +65,6 @@
66
65
  image_kit_public_key: <%= ENV["IMAGE_KIT_PUBLIC_KEY"] %>
67
66
  image_kit_private_key: <%= ENV["IMAGE_KIT_PRIVATE_KEY"] %>
68
67
  image_kit_url_endpoint: <%= ENV["IMAGE_KIT_URL_ENDPOINT"] %>
69
- client_app_name: <%= ENV["CLIENT_APP_NAME"] %>
70
68
  unsplash_access_key: <%= ENV["UNSPLASH_ACCESS_KEY"] %>
71
69
  ```
72
70
 
@@ -81,7 +79,7 @@
81
79
  image_kit: {
82
80
  url_endpoint: Rails.application.secrets.image_kit_url_endpoint,
83
81
  public_key: Rails.application.secrets.image_kit_public_key,
84
- folder: Rails.application.secrets.client_app_name
82
+ folder: NeetoCommonsBackend::EnvConstants.client_app_name
85
83
  }
86
84
  }
87
85
 
@@ -141,7 +139,7 @@ The frontend exports two components `AssetLibrary` and `ImageUploader`.
141
139
  ### Invoke the hook
142
140
 
143
141
  ```jsx
144
- const { uploadImage, uploadProgress, uploadedImage } = useImageUpload();
142
+ const { uploadImage, uploadProgress, isUploading } = useImageUpload();
145
143
  ```
146
144
 
147
145
  ### Call uploadImage to Upload an Image