Skip to content

Commit 8f81da7

Browse files
committed
fix: renamed import
1 parent c823c5a commit 8f81da7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/components/DocumentList/index.tsx

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import type {SanityDocument} from '@sanity/client'
22
import {Box, Button, Card, Stack, Text} from '@sanity/ui'
33
import React from 'react'
4-
import {
5-
SanityPreview,
6-
SchemaType,
7-
useDocumentStore,
8-
useSchema,
9-
WithReferringDocuments
10-
} from 'sanity'
4+
import {Preview, SchemaType, useDocumentStore, useSchema, WithReferringDocuments} from 'sanity'
115
import {useIntentLink} from 'sanity/router'
126

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

7367
return schemaType ? (
7468
<Button key={doc._id} mode="bleed" onClick={onClick} padding={2} style={{width: '100%'}}>
75-
<SanityPreview layout="default" schemaType={schemaType} value={doc} />
69+
<Preview layout="default" schemaType={schemaType} value={doc} />
7670
</Button>
7771
) : (
7872
<Box padding={2}>

0 commit comments

Comments
 (0)