Skip to content

Commit

Permalink
fix(portable-text-editor): remove unused prop
Browse files Browse the repository at this point in the history
This was moved to the PortableTextEditable some while ago. This is a leftover.
  • Loading branch information
skogsmaskin authored and bjoerge committed Mar 28, 2022
1 parent 33f3e4a commit 13a1294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export type PortableTextEditorProps = {
onChange: (change: EditorChange) => void
incomingPatches$?: PatchObservable
readOnly?: boolean
selection?: EditorSelection
type: Type | RawSchemaType
value: PortableTextBlock[] | undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Schema from '@sanity/schema'
import {PortableTextEditor, PortableTextEditorProps} from '../../editor/PortableTextEditor'
import {RawType} from '../../types/schema'
import {PortableTextEditable} from '../../editor/Editable'
import {EditorSelection} from '../../types/editor'

const imageType: RawType = {
type: 'image',
Expand Down Expand Up @@ -46,12 +47,12 @@ let key = 0

export const PortableTextEditorTester = forwardRef(function PortableTextEditorTester(
props: Partial<
Omit<PortableTextEditorProps, 'type' | 'onChange | value' | 'selection' | 'placeholderText'>
Omit<PortableTextEditorProps, 'type' | 'onChange' | 'value' | 'placeholderText'>
> & {
type: PortableTextEditorProps['type']
value?: PortableTextEditorProps['value']
onChange?: PortableTextEditorProps['onChange']
selection?: PortableTextEditorProps['selection']
selection?: EditorSelection
renderPlaceholder?: () => React.ReactNode
},
ref: ForwardedRef<PortableTextEditor>
Expand Down

0 comments on commit 13a1294

Please sign in to comment.