perf(bundle): replace broad storage and utils imports
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
import type { LoginStatus } from "@/data/dto/auth";
|
||||
import type { ChatUpgradeReason } from "@/stores/chat/chat-state";
|
||||
import { AppEnvUtil, BrowserDetector } from "@/utils";
|
||||
import { AppEnvUtil } from "@/utils/app-env";
|
||||
import { BrowserDetector } from "@/utils/browser-detect";
|
||||
|
||||
export interface ExternalBrowserPromptState {
|
||||
hasInitialized: boolean;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useRef, useState } from "react";
|
||||
|
||||
import { useChatDispatch } from "@/stores/chat/chat-context";
|
||||
import { useKeyboardHeight } from "@/hooks";
|
||||
import { Logger } from "@/utils";
|
||||
import { Logger } from "@/utils/logger";
|
||||
|
||||
import { ChatInputTextField } from "./chat-input-text-field";
|
||||
import { ChatSendButton } from "./chat-send-button";
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
canShowPwaInstallPromptOnce,
|
||||
recordPwaInstallPromptShown,
|
||||
} from "@/lib/chat/pwa_install_prompt";
|
||||
import { pwaUtil } from "@/utils";
|
||||
import { pwaUtil } from "@/utils/pwa";
|
||||
|
||||
import { PwaInstallDialog } from "./pwa-install-dialog";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
peekPendingChatUnlock,
|
||||
} from "@/lib/navigation/chat_unlock_session";
|
||||
import { useChatDispatch } from "@/stores/chat/chat-context";
|
||||
import { Logger } from "@/utils";
|
||||
import { Logger } from "@/utils/logger";
|
||||
|
||||
const log = new Logger("UseChatPromotionBootstrap");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user