diff --git a/excalidraw-app/components/AppMainMenu.tsx b/excalidraw-app/components/AppMainMenu.tsx index 09c71e7ee..4bc6bb471 100644 --- a/excalidraw-app/components/AppMainMenu.tsx +++ b/excalidraw-app/components/AppMainMenu.tsx @@ -6,13 +6,14 @@ import { import { MainMenu } from "@excalidraw/excalidraw/index"; import React from "react"; +import { isDevEnv } from "@excalidraw/excalidraw/utils"; + import type { Theme } from "@excalidraw/excalidraw/element/types"; import { LanguageList } from "../app-language/LanguageList"; import { isExcalidrawPlusSignedUser } from "../app_constants"; import { saveDebugState } from "./DebugCanvas"; -import { isDevEnv } from "@excalidraw/excalidraw/utils"; export const AppMainMenu: React.FC<{ onCollabDialogOpen: () => any; diff --git a/packages/excalidraw/charts.ts b/packages/excalidraw/charts.ts index 991e25b5d..20fa8e87a 100644 --- a/packages/excalidraw/charts.ts +++ b/packages/excalidraw/charts.ts @@ -15,9 +15,10 @@ import { import { newElement, newLinearElement, newTextElement } from "./element"; import { randomId } from "./random"; -import type { NonDeletedExcalidrawElement } from "./element/types"; import { isDevEnv } from "./utils"; +import type { NonDeletedExcalidrawElement } from "./element/types"; + export type ChartElements = readonly NonDeletedExcalidrawElement[]; const BAR_WIDTH = 32; diff --git a/packages/excalidraw/i18n.ts b/packages/excalidraw/i18n.ts index 8d80ca3ff..095b418dd 100644 --- a/packages/excalidraw/i18n.ts +++ b/packages/excalidraw/i18n.ts @@ -2,9 +2,10 @@ import { useAtomValue, editorJotaiStore, atom } from "./editor-jotai"; import fallbackLangData from "./locales/en.json"; import percentages from "./locales/percentages.json"; -import type { NestedKeyOf } from "./utility-types"; import { isDevEnv } from "./utils"; +import type { NestedKeyOf } from "./utility-types"; + const COMPLETION_THRESHOLD = 85; export interface Language {