fix import
This commit is contained in:
@@ -2,7 +2,6 @@ import {useCallback} from 'react'
|
|||||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||||
import {nanoid} from 'nanoid/non-secure'
|
import {nanoid} from 'nanoid/non-secure'
|
||||||
|
|
||||||
import {isNative} from '#/platform/detection'
|
|
||||||
import {type ComposerImage} from '#/state/gallery'
|
import {type ComposerImage} from '#/state/gallery'
|
||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
import {type ComposerOpts} from '#/state/shell/composer'
|
import {type ComposerOpts} from '#/state/shell/composer'
|
||||||
@@ -19,9 +18,7 @@ import {
|
|||||||
type StoredPostDraft,
|
type StoredPostDraft,
|
||||||
type StoredRichText,
|
type StoredRichText,
|
||||||
} from './schema'
|
} from './schema'
|
||||||
|
import * as storage from './storage'
|
||||||
// Import platform-specific storage
|
|
||||||
const storage = isNative ? require('./storage') : require('./storage.web')
|
|
||||||
|
|
||||||
const DRAFTS_QUERY_KEY_ROOT = 'drafts'
|
const DRAFTS_QUERY_KEY_ROOT = 'drafts'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user