From 2dbee371f34a6d3805dfab6e19a9b6656d75026d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 15 Jan 2026 17:31:35 +0200 Subject: [PATCH] fix import --- src/state/drafts/hooks.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/state/drafts/hooks.ts b/src/state/drafts/hooks.ts index 679ccb55a8..5b60849e15 100644 --- a/src/state/drafts/hooks.ts +++ b/src/state/drafts/hooks.ts @@ -2,7 +2,6 @@ import {useCallback} from 'react' import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' import {nanoid} from 'nanoid/non-secure' -import {isNative} from '#/platform/detection' import {type ComposerImage} from '#/state/gallery' import {useSession} from '#/state/session' import {type ComposerOpts} from '#/state/shell/composer' @@ -19,9 +18,7 @@ import { type StoredPostDraft, type StoredRichText, } from './schema' - -// Import platform-specific storage -const storage = isNative ? require('./storage') : require('./storage.web') +import * as storage from './storage' const DRAFTS_QUERY_KEY_ROOT = 'drafts'