Skip to content

Commit

Permalink
chore(core): rename commentsSetup to addOnDataset/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Feb 22, 2024
1 parent 8d1e0c4 commit c456956
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/sanity/src/core/studio/addOnDataset/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './setup'
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {type SanityClient} from '@sanity/client'
import {useCallback, useEffect, useMemo, useState} from 'react'

import {useClient} from '../../hooks'
import {DEFAULT_STUDIO_CLIENT_OPTIONS} from '../../studioClient'
import {useWorkspace} from '../workspace'
import {useClient} from '../../../hooks'
import {DEFAULT_STUDIO_CLIENT_OPTIONS} from '../../../studioClient'
import {useWorkspace} from '../../workspace'
import {CommentsSetupContext} from './CommentsSetupContext'
import {type CommentsSetupContextValue} from './types'

Expand All @@ -14,7 +14,7 @@ interface CommentsSetupProviderProps {
}

/**
* This providers sets the addon dataset client, currently called `comments` dataset.
* This provider sets the addon dataset client, currently called `comments` dataset.
* It also exposes a `runSetup` function that can be used to create the addon dataset if it does not exist.
* @beta
* @hidden
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/studio/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './activeWorkspaceMatcher'
export * from './addOnDataset'
export * from './colorScheme'
export * from './commentsSetup'
export * from './components'
export * from './renderStudio'
export * from './source'
Expand Down
1 change: 0 additions & 1 deletion packages/sanity/src/structure/comments/src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from '../../../../core/studio/commentsSetup/useCommentsSetup'
export * from './use-comment-operations'
export * from './useComments'
export * from './useCommentsEnabled'
Expand Down

0 comments on commit c456956

Please sign in to comment.