Skip to content

Commit

Permalink
[desk-tool] Remove useless SimplePaneItemPreview component (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Oct 16, 2018
1 parent 8445e55 commit 03c99f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
15 changes: 0 additions & 15 deletions packages/@sanity/desk-tool/src/components/SimplePaneItemPreview.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/@sanity/desk-tool/src/pane/PaneItem.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import PropTypes from 'prop-types'
import React from 'react'
import schema from 'part:@sanity/base/schema'
import {SanityDefaultPreview} from 'part:@sanity/base/preview'
import DocumentPaneItemPreview from '../components/DocumentPaneItemPreview'
import SimplePaneItemPreview from '../components/SimplePaneItemPreview'
import MissingSchemaType from '../components/MissingSchemaType'
import PaneItemWrapper from './PaneItemWrapper'

Expand All @@ -21,7 +21,7 @@ export default function PaneItem(props) {
)
} else {
preview = (
<SimplePaneItemPreview
<SanityDefaultPreview
icon={icon || (schemaType && schemaType.icon)}
layout={layout}
value={value}
Expand Down

0 comments on commit 03c99f4

Please sign in to comment.