From 82faaae580f985c69a8675fd914a0524a754a9c2 Mon Sep 17 00:00:00 2001 From: Arpit Sureka Date: Mon, 5 Feb 2024 16:33:31 +0530 Subject: [PATCH] changes --- .../{upload-image.edit copy.jsx => upload-image.edit.jsx} | 4 ++-- admin_panel/ui/components/upload-image.list.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename admin_panel/ui/components/{upload-image.edit copy.jsx => upload-image.edit.jsx} (82%) diff --git a/admin_panel/ui/components/upload-image.edit copy.jsx b/admin_panel/ui/components/upload-image.edit.jsx similarity index 82% rename from admin_panel/ui/components/upload-image.edit copy.jsx rename to admin_panel/ui/components/upload-image.edit.jsx index 3155bc4..43fc3c1 100644 --- a/admin_panel/ui/components/upload-image.edit copy.jsx +++ b/admin_panel/ui/components/upload-image.edit.jsx @@ -1,10 +1,10 @@ import React from 'react' import { Label, Box, DropZone, BasePropertyProps, DropZoneProps, DropZoneItem } from 'admin-bro' -const Edit: React.FC = (props) => { +const Edit = (props) => { const { property, onChange, record } = props - const handleDropZoneChange: DropZoneProps['onChange'] = (files) => { + const handleDropZoneChange = (files) => { onChange(property.name, files[0]) } diff --git a/admin_panel/ui/components/upload-image.list.jsx b/admin_panel/ui/components/upload-image.list.jsx index 216a16b..e9bdba3 100644 --- a/admin_panel/ui/components/upload-image.list.jsx +++ b/admin_panel/ui/components/upload-image.list.jsx @@ -1,7 +1,7 @@ import React from 'react' import { Box, BasePropertyProps } from 'admin-bro' -const Edit: React.FC = (props) => { +const Edit = (props) => { const { record } = props const srcImg = record.params['profilePhotoLocation']