From 6fdd84a91a7836de18784a0b7783c4937627c348 Mon Sep 17 00:00:00 2001 From: Liam Martens Date: Tue, 15 Mar 2022 08:08:54 -0400 Subject: [PATCH] fix: Fixed ConfirmDeleteDialog import to be named instead of default --- CHANGELOG.md | 3 +++ package.json | 2 +- src/.d.ts | 2 +- src/actions/DeleteWithi18nAction.tsx | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c4e138..3a202a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 636e198..4881438 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/document-internationalization", - "version": "0.1.1", + "version": "0.1.2", "license": "MIT", "engines": { "node": ">=14" diff --git a/src/.d.ts b/src/.d.ts index 9c43f75..74bbad9 100644 --- a/src/.d.ts +++ b/src/.d.ts @@ -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' { diff --git a/src/actions/DeleteWithi18nAction.tsx b/src/actions/DeleteWithi18nAction.tsx index 371d45f..faccc23 100644 --- a/src/actions/DeleteWithi18nAction.tsx +++ b/src/actions/DeleteWithi18nAction.tsx @@ -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'