Skip to content

Commit

Permalink
Merge pull request #34 from sanity-io/fix/confirm-delete-dialog
Browse files Browse the repository at this point in the history
fix: Fixed ConfirmDeleteDialog import to be named instead of default
  • Loading branch information
LiamMartens authored Mar 15, 2022
2 parents 5323b0b + 6fdd84a commit 29f72b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## v0.1.2
* Fixed import to `ConfirmDeleteDialog`

## v0.1.1
* [#32](https://github.com/sanity-io/document-internationalization/issues/32) Fixes default and custom flag implementations

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sanity/document-internationalization",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"engines": {
"node": ">=14"
Expand Down
2 changes: 1 addition & 1 deletion src/.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare module '@sanity/desk-tool/lib/components/confirmDeleteDialog/ConfirmDele
onCancel?: () => void;
onConfirm?: () => void;
}>;
export default ConfirmDeleteDialog;
export { ConfirmDeleteDialog };
}

declare module '@sanity/desk-tool/lib/components/enhanceWithReferringDocuments' {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/DeleteWithi18nAction.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import TrashIcon from 'part:@sanity/base/trash-icon'
import ConfirmDeleteDialog from '@sanity/desk-tool/lib/components/confirmDeleteDialog/ConfirmDeleteDialog'
import {ConfirmDeleteDialog} from '@sanity/desk-tool/lib/components/confirmDeleteDialog/ConfirmDeleteDialog'
import {useDocumentOperation, useEditState, useSyncState} from '@sanity/react-hooks'
import {useToast} from '@sanity/ui'
import {IEditState, IResolverProps, IUseDocumentOperationResult} from '../types'
Expand Down

0 comments on commit 29f72b3

Please sign in to comment.