Skip to content

Commit

Permalink
revert changes in packages/@uppy/provider-views/src/Item/index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jun 17, 2024
1 parent ad341d4 commit b599fd4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/@uppy/provider-views/src/Item/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/require-default-props */
import { h } from 'preact'

import classNames from 'classnames'
Expand Down Expand Up @@ -27,13 +28,10 @@ type ItemProps<M extends Meta, B extends Body> = {
viewType: string
}

export default function Item<M extends Meta, B extends Body>({
author = undefined,
getItemIcon,
isChecked,
isDisabled,
viewType,
}: ItemProps<M, B>): h.JSX.Element {
export default function Item<M extends Meta, B extends Body>(
props: ItemProps<M, B>,
): h.JSX.Element {
const { author, getItemIcon, isChecked, isDisabled, viewType } = props
const itemIconString = getItemIcon()

const className = classNames(
Expand Down

0 comments on commit b599fd4

Please sign in to comment.