Skip to content

Commit

Permalink
fix: renamed import
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Nov 25, 2022
1 parent c823c5a commit 8f81da7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/DocumentList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import type {SanityDocument} from '@sanity/client'
import {Box, Button, Card, Stack, Text} from '@sanity/ui'
import React from 'react'
import {
SanityPreview,
SchemaType,
useDocumentStore,
useSchema,
WithReferringDocuments
} from 'sanity'
import {Preview, SchemaType, useDocumentStore, useSchema, WithReferringDocuments} from 'sanity'
import {useIntentLink} from 'sanity/router'

type Props = {
Expand Down Expand Up @@ -72,7 +66,7 @@ const ReferringDocument = (props: {doc: SanityDocument; schemaType?: SchemaType}

return schemaType ? (
<Button key={doc._id} mode="bleed" onClick={onClick} padding={2} style={{width: '100%'}}>
<SanityPreview layout="default" schemaType={schemaType} value={doc} />
<Preview layout="default" schemaType={schemaType} value={doc} />
</Button>
) : (
<Box padding={2}>
Expand Down

0 comments on commit 8f81da7

Please sign in to comment.