Skip to content

Commit

Permalink
fix: use create link target for Edit in Create
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Oct 20, 2024
1 parent c89eeef commit c7e793c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {type ReactNode, useCallback, useState} from 'react'
import {Button} from '../../../ui-components'
import {useTranslation} from '../../i18n'
import {createLocaleNamespace} from '../i18n'
import {CREATE_LINK_TARGET} from '../start-in-create/StartInCreateDialog'
import {type CreateLinkedActionsProps} from '../types'
import {useCreateDocumentUrl} from '../useCreateDocumentUrl'
import {useSanityCreateTelemetry} from '../useSanityCreateTelemetry'
Expand Down Expand Up @@ -36,6 +37,7 @@ export function CreateLinkedActions(props: CreateLinkedActionsProps) {
mode="ghost"
paddingY={3}
href={href}
target={CREATE_LINK_TARGET}
onClick={onEditInCreateClicked}
/>
<Button text={t('unlink-from-create-button.text')} paddingY={3} onClick={confirmUnlink} />
Expand Down

0 comments on commit c7e793c

Please sign in to comment.