Commit 7e692516 authored by aleclofabbro's avatar aleclofabbro

Merge branch 'fix/udate_profile_accidentally_logsout_user' into develop

parents a68edda1 f8da288f
...@@ -31,7 +31,7 @@ export const useMe = () => { ...@@ -31,7 +31,7 @@ export const useMe = () => {
const [ const [
updateProfileMutation, updateProfileMutation,
updateProfileMutationStatus updateProfileMutationStatus
] = GQL.useMeLogoutMutation(); ] = GQL.useMeUpdateMyProfileMutation();
const { push } = useHistory(); const { push } = useHistory();
const me = meQ.data?.me; const me = meQ.data?.me;
......
...@@ -48,9 +48,9 @@ const DropzoneArea: React.FC<Props> = ({ ...@@ -48,9 +48,9 @@ const DropzoneArea: React.FC<Props> = ({
const { const {
getRootProps, getRootProps,
getInputProps, getInputProps,
isDragActive, isDragActive
rejectedFiles, // rejectedFiles,
acceptedFiles // acceptedFiles
} = useDropzone({ } = useDropzone({
accept: filePattern, accept: filePattern,
// maxSize: uploadMaxBytes, // maxSize: uploadMaxBytes,
...@@ -66,7 +66,7 @@ const DropzoneArea: React.FC<Props> = ({ ...@@ -66,7 +66,7 @@ const DropzoneArea: React.FC<Props> = ({
} }
}); });
// const rejectedFile = rejectedFiles[0]; // const rejectedFile = rejectedFiles[0];
console.log({ rejectedFiles, acceptedFiles }); // console.log({ rejectedFiles, acceptedFiles });
return ( return (
<> <>
<Box sx={{ height: '100%' }} {...getRootProps({ className: 'dropzone' })}> <Box sx={{ height: '100%' }} {...getRootProps({ className: 'dropzone' })}>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment