disable filestack code in image upload for now

This commit is contained in:
Nuwan 2024-02-28 22:19:29 +05:30
parent 238fc8a382
commit 8f84e5d12d
1 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import React, { useEffect } from 'react'
import * as filestack from 'filestack-js';
//import * as filestack from 'filestack-js';
import { Button } from 'reactstrap';
import { useTranslation } from 'react-i18next';
import JKModalDialog from '../common/JKModalDialog';
@ -21,14 +21,14 @@ const JKProfileAvatarUpload = ({show, toggle}) => {
}, [currentUser]);
const openFilePicker = () => {
const client = filestack.init(window.gon.fp_apikey);
client.picker({
accept: 'image/*',
maxFiles: 1,
onFileUploadFinished: (response) => {
console.log(response);
}
}).open();
// const client = filestack.init(window.gon.fp_apikey);
// client.picker({
// accept: 'image/*',
// maxFiles: 1,
// onFileUploadFinished: (response) => {
// console.log(response);
// }
// }).open();
}
return (
<JKModalDialog