Skip to content

Commit

Permalink
Update TableInput.tsx (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgorgos authored Feb 25, 2024
1 parent 0880282 commit 97e2b9c
Show file tree
Hide file tree
Showing 4 changed files with 1,641 additions and 845 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@sanity/incompatible-plugin": "^1.0.4",
"@sanity/ui": "^1.2.2",
"react": "^18.2.0",
"sanity": "^3.2.6"
"sanity": "^3.20.0"
},
"devDependencies": {
"@sanity/pkg-utils": "^2.2.3",
Expand Down
2 changes: 2 additions & 0 deletions src/components/TableInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export function TableInput(props: ObjectInputProps & TableConfig) {
renderField={props.renderField}
renderItem={props.renderItem}
renderPreview={props.renderPreview}
renderBlock={props.renderBlock}
renderAnnotation={props.renderAnnotation}
/>
)}
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PortableTextBlock, BlockDefinition} from 'sanity'
import type {PortableTextBlock, BlockDefinition} from 'sanity'

export interface TableConfig {
cellSchema: BlockDefinition
Expand Down
Loading

0 comments on commit 97e2b9c

Please sign in to comment.