328aa2be94
* Add blocking announcement dialog feature * WIP custom dialog * Rework dialog and add native FocusScope * Lock scroll on web, fix backdrop * Add web FocusScope * Create custom Outlet for these announcements * Clean up FocusScope native impl * Comments * Some styling fixes * Handle screen reader specifically * Clean up state, remove Portal edits * Reorg, rename * Add syncing, tests * Revert dialog updates * Revert formatting * Delete unused file * Format * Add FullWindowOverlay * remove mmkv storage in debug btn * Add debug code * fix taps passing through on iOS * Reorg * Reorg, rename everything * Complete policy update after signup * Add logger * Move context around, unmount portals on native * Move a11y prop into FocusScope * Remove useMemo * Update dates * Move debug to dev settings * Unmount web portals until policy update completed * UPdate dates --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
26 lines
437 B
TypeScript
26 lines
437 B
TypeScript
import {jest} from '@jest/globals'
|
|
|
|
export {Nux} from '#/state/queries/nuxs/definitions'
|
|
|
|
export const useNuxs = jest.fn(() => {
|
|
return {
|
|
nuxs: undefined,
|
|
status: 'loading' as const,
|
|
}
|
|
})
|
|
|
|
export const useNux = jest.fn((id: string) => {
|
|
return {
|
|
nux: undefined,
|
|
status: 'loading' as const,
|
|
}
|
|
})
|
|
|
|
export const useSaveNux = jest.fn(() => {
|
|
return {}
|
|
})
|
|
|
|
export const useResetNuxs = jest.fn(() => {
|
|
return {}
|
|
})
|