diff --git a/webapp/src/components/formulabar.tsx b/webapp/src/components/formulabar.tsx index 99be4fa..745b7a9 100644 --- a/webapp/src/components/formulabar.tsx +++ b/webapp/src/components/formulabar.tsx @@ -2,9 +2,9 @@ import type { Model } from "@ironcalc/wasm"; import { Button, styled } from "@mui/material"; import { ChevronDown } from "lucide-react"; import { Fx } from "../icons"; +import { FORMULA_BAR_HEIGH } from "./constants"; import Editor from "./editor/editor"; import type { WorkbookState } from "./workbookState"; -import { FORMULA_BAR_HEIGH } from "./constants"; type FormulaBarProps = { cellAddress: string; diff --git a/webapp/src/components/navigation/navigation.tsx b/webapp/src/components/navigation/navigation.tsx index 4d14622..319f7d3 100644 --- a/webapp/src/components/navigation/navigation.tsx +++ b/webapp/src/components/navigation/navigation.tsx @@ -2,12 +2,12 @@ import { styled } from "@mui/material"; import { ChevronLeft, ChevronRight, Menu, Plus } from "lucide-react"; import { useState } from "react"; import { useTranslation } from "react-i18next"; +import { NAVIGATION_HEIGH } from "../constants"; import { StyledButton } from "../toolbar"; import type { WorkbookState } from "../workbookState"; import SheetListMenu from "./menus"; import Sheet from "./sheet"; import type { SheetOptions } from "./types"; -import { NAVIGATION_HEIGH } from "../constants"; export interface NavigationProps { sheets: SheetOptions[]; diff --git a/webapp/src/components/toolbar.tsx b/webapp/src/components/toolbar.tsx index c636817..8d085f1 100644 --- a/webapp/src/components/toolbar.tsx +++ b/webapp/src/components/toolbar.tsx @@ -36,13 +36,13 @@ import { import { theme } from "../theme"; import BorderPicker from "./borderPicker"; import ColorPicker from "./colorPicker"; +import { TOOLBAR_HEIGH } from "./constants"; import FormatMenu from "./formatMenu"; import { NumberFormats, decreaseDecimalPlaces, increaseDecimalPlaces, } from "./formatUtil"; -import { TOOLBAR_HEIGH } from "./constants"; type ToolbarProperties = { canUndo: boolean; diff --git a/webapp/src/components/worksheet.tsx b/webapp/src/components/worksheet.tsx index 261d12d..3f15d60 100644 --- a/webapp/src/components/worksheet.tsx +++ b/webapp/src/components/worksheet.tsx @@ -6,11 +6,15 @@ import { outlineColor, } from "./WorksheetCanvas/constants"; import WorksheetCanvas from "./WorksheetCanvas/worksheetCanvas"; +import { + FORMULA_BAR_HEIGH, + NAVIGATION_HEIGH, + TOOLBAR_HEIGH, +} from "./constants"; import Editor from "./editor/editor"; import type { Cell } from "./types"; import usePointer from "./usePointer"; import { AreaType, type WorkbookState } from "./workbookState"; -import { FORMULA_BAR_HEIGH, NAVIGATION_HEIGH, TOOLBAR_HEIGH } from "./constants"; function useWindowSize() { const [size, setSize] = useState([0, 0]);