Skip to content

Commit

Permalink
remove image import in refpicker
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed Sep 26, 2023
1 parent 280b25a commit dc509f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar, DialogActions, DialogContent, LinearProgress } from '@material-ui/core'
import { ODataParams, Repository } from '@sensenet/client-core'
import { Folder, Image, ReferenceFieldSetting, User } from '@sensenet/default-content-types'
import { Folder, ReferenceFieldSetting, User } from '@sensenet/default-content-types'
import { GenericContentWithIsParent, Picker, PickerProps } from '@sensenet/pickers-react'
import React, { useMemo } from 'react'
import { renderIconDefault } from '../icon'
Expand Down Expand Up @@ -47,7 +47,7 @@ export const ReferencePicker: React.FC<ReferencePickerProps<GenericContentWithIs
return isFolder ? 'folder' : 'insert_drive_file'
}

const renderIcon = (item: GenericContentWithIsParent | User | Image) => {
const renderIcon = (item: GenericContentWithIsParent | User) => {
if (props.repository.schemas.isContentFromType<User>(item, 'User')) {
const avatarUrl = item.Avatar?.Url
if (avatarUrl) {
Expand Down

0 comments on commit dc509f6

Please sign in to comment.