Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArpitSureka committed Feb 5, 2024
1 parent 82bbfcd commit 82faaae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import { Label, Box, DropZone, BasePropertyProps, DropZoneProps, DropZoneItem } from 'admin-bro'

const Edit: React.FC<BasePropertyProps> = (props) => {
const Edit = (props) => {
const { property, onChange, record } = props

const handleDropZoneChange: DropZoneProps['onChange'] = (files) => {
const handleDropZoneChange = (files) => {
onChange(property.name, files[0])
}

Expand Down
2 changes: 1 addition & 1 deletion admin_panel/ui/components/upload-image.list.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Box, BasePropertyProps } from 'admin-bro'

const Edit: React.FC<BasePropertyProps> = (props) => {
const Edit = (props) => {
const { record } = props

const srcImg = record.params['profilePhotoLocation']
Expand Down

0 comments on commit 82faaae

Please sign in to comment.