Skip to content

Commit

Permalink
chore(sanity): hide ready
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Jun 28, 2024
1 parent baa679e commit b603b2b
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AddIcon, CheckmarkIcon} from '@sanity/icons'
import {AddIcon} from '@sanity/icons'
import {useToast} from '@sanity/ui'
import {useCallback, useEffect, useState} from 'react'
import {DEFAULT_STUDIO_CLIENT_OPTIONS, useClient, useDocumentOperation} from 'sanity'
Expand Down Expand Up @@ -52,21 +52,24 @@ export function BundleActions(props: BundleActionsProps): JSX.Element {
newVersion.execute(bundleId)
}, [documentId, documentVersions, name, newVersion, title, toast])

/* follow up
const handleReady = useCallback(() => {
// eslint-disable-next-line no-console
console.log('handle ready', name)
}, [name])

return isReady ? (
<Button
}, [name])
isReady ? (
{<Button
data-testid={`action-ready-to-${name}`}
// localize text
// eslint-disable-next-line @sanity/i18n/no-attribute-string-literals
text="Ready"
icon={CheckmarkIcon}
onClick={handleReady}
/>
) : (
)*/

return (
<Button
data-testid={`action-add-to-${name}`}
// localize text
Expand Down

0 comments on commit b603b2b

Please sign in to comment.