Skip to content

Commit

Permalink
refactor(tasks): move MentionUserContext to singletons
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed Apr 29, 2024
1 parent 453d260 commit 924f5b0
Show file tree
Hide file tree
Showing 5 changed files with 4 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 @@ -52,4 +52,5 @@ export * from './studio/SourceContext'
export * from './studio/WorkspaceContext'
export * from './studio/workspaces/WorkspacesContext'
export * from './tasks/enabled/TasksEnabledContext'
export * from './tasks/mentionUser/MentionUserContext'
export * from './user-color/UserColorManagerContext'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createContext} from 'react'

import {type MentionUserContextValue} from './types'
import {MentionUserContextValue} from '../../../core/tasks/context/mentionUser/types'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {type SanityDocument} from '@sanity/client'
import {useMemo, useState} from 'react'

import {useUserListWithPermissions} from '../../../hooks'
import {MentionUserContext} from './MentionUserContext'
import {MentionUserContext} from 'sanity/_singletons'

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './MentionUserContext'
export * from './MentionUserProvider'
export * from './types'
export * from './useMentionUser'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useContext} from 'react'
import {MentionUserContext} from 'sanity/_singletons'

import {MentionUserContext} from './MentionUserContext'
import {type MentionUserContextValue} from './types'

/**
Expand Down

0 comments on commit 924f5b0

Please sign in to comment.