Skip to content

Commit

Permalink
fix: use copy icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nkgentile committed Nov 13, 2024
1 parent f3b6df0 commit 6a7ae3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/actions/DuplicateWithTranslationsAction.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CopyIcon, TranslateIcon} from '@sanity/icons'
import {CopyIcon} from '@sanity/icons'
import {useToast} from '@sanity/ui'
import {uuid} from '@sanity/uuid'
import {useCallback, useMemo, useState} from 'react'
Expand Down Expand Up @@ -196,7 +196,7 @@ export const DuplicateWithTranslationsAction: DocumentActionComponent = ({

if (!isMetadataDocumentLoading && !metadataDocument) {
return {
icon: TranslateIcon,
icon: CopyIcon,
disabled: true,
label: documenti18nT('action.duplicate.label'),
title: documenti18nT(DISABLED_REASON_KEY.METADATA_NOT_FOUND),
Expand All @@ -205,15 +205,15 @@ export const DuplicateWithTranslationsAction: DocumentActionComponent = ({

if (!hasOneMetadataDocument) {
return {
icon: TranslateIcon,
icon: CopyIcon,
disabled: true,
label: documenti18nT('action.duplicate.label'),
title: documenti18nT(DISABLED_REASON_KEY.MULTIPLE_METADATA),
}
}

return {
icon: TranslateIcon,
icon: CopyIcon,
disabled:
isDuplicating ||
Boolean(duplicate.disabled) ||
Expand Down

0 comments on commit 6a7ae3a

Please sign in to comment.