Skip to content

Commit

Permalink
refactor(structure): move CommentsAuthoringPathContext to singletons
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed Apr 29, 2024
1 parent 6247093 commit 6555ffc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/sanity/src/_singletons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export * from './i18n/LocaleContext'
export * from './presence/FormFieldPresenceContext'
export * from './router/RouterContext'
export * from './store/_legacy/ResourceCacheContext'
export * from './structure/comments/authoring-path/CommentsAuthoringPathContext'
export * from './structure/comments/components/pte/comment-input/CommentInputContext'
export * from './structure/components/pane/PaneContext'
export * from './structure/panes/document/DocumentPaneContext'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createContext} from 'react'

import {type CommentsAuthoringPathContextValue} from './types'
import {CommentsAuthoringPathContextValue} from '../../../../core/comments/context/authoring-path/types'

/**
* @beta
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {type ReactNode, useCallback, useMemo, useState} from 'react'
import {CommentsAuthoringPathContext} from 'sanity/_singletons'

import {CommentsAuthoringPathContext} from './CommentsAuthoringPathContext'
import {type CommentsAuthoringPathContextValue} from './types'

interface CommentsAuthoringPathProviderProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './CommentsAuthoringPathContext'
export * from './CommentsAuthoringPathProvider'
export * from './types'
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {useContext} from 'react'
import {CommentsAuthoringPathContext} from 'sanity/_singletons'

import {CommentsAuthoringPathContext, type CommentsAuthoringPathContextValue} from '../context'
import {type CommentsAuthoringPathContextValue} from '../context'

/**
* @beta
Expand Down

0 comments on commit 6555ffc

Please sign in to comment.