FIX: Proper imports
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
8c0a566995
commit
b495397b5f
@@ -2,9 +2,9 @@ import type { Model } from "@ironcalc/wasm";
|
|||||||
import { Button, styled } from "@mui/material";
|
import { Button, styled } from "@mui/material";
|
||||||
import { ChevronDown } from "lucide-react";
|
import { ChevronDown } from "lucide-react";
|
||||||
import { Fx } from "../icons";
|
import { Fx } from "../icons";
|
||||||
|
import { FORMULA_BAR_HEIGH } from "./constants";
|
||||||
import Editor from "./editor/editor";
|
import Editor from "./editor/editor";
|
||||||
import type { WorkbookState } from "./workbookState";
|
import type { WorkbookState } from "./workbookState";
|
||||||
import { FORMULA_BAR_HEIGH } from "./constants";
|
|
||||||
|
|
||||||
type FormulaBarProps = {
|
type FormulaBarProps = {
|
||||||
cellAddress: string;
|
cellAddress: string;
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ import { styled } from "@mui/material";
|
|||||||
import { ChevronLeft, ChevronRight, Menu, Plus } from "lucide-react";
|
import { ChevronLeft, ChevronRight, Menu, Plus } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { NAVIGATION_HEIGH } from "../constants";
|
||||||
import { StyledButton } from "../toolbar";
|
import { StyledButton } from "../toolbar";
|
||||||
import type { WorkbookState } from "../workbookState";
|
import type { WorkbookState } from "../workbookState";
|
||||||
import SheetListMenu from "./menus";
|
import SheetListMenu from "./menus";
|
||||||
import Sheet from "./sheet";
|
import Sheet from "./sheet";
|
||||||
import type { SheetOptions } from "./types";
|
import type { SheetOptions } from "./types";
|
||||||
import { NAVIGATION_HEIGH } from "../constants";
|
|
||||||
|
|
||||||
export interface NavigationProps {
|
export interface NavigationProps {
|
||||||
sheets: SheetOptions[];
|
sheets: SheetOptions[];
|
||||||
|
|||||||
@@ -36,13 +36,13 @@ import {
|
|||||||
import { theme } from "../theme";
|
import { theme } from "../theme";
|
||||||
import BorderPicker from "./borderPicker";
|
import BorderPicker from "./borderPicker";
|
||||||
import ColorPicker from "./colorPicker";
|
import ColorPicker from "./colorPicker";
|
||||||
|
import { TOOLBAR_HEIGH } from "./constants";
|
||||||
import FormatMenu from "./formatMenu";
|
import FormatMenu from "./formatMenu";
|
||||||
import {
|
import {
|
||||||
NumberFormats,
|
NumberFormats,
|
||||||
decreaseDecimalPlaces,
|
decreaseDecimalPlaces,
|
||||||
increaseDecimalPlaces,
|
increaseDecimalPlaces,
|
||||||
} from "./formatUtil";
|
} from "./formatUtil";
|
||||||
import { TOOLBAR_HEIGH } from "./constants";
|
|
||||||
|
|
||||||
type ToolbarProperties = {
|
type ToolbarProperties = {
|
||||||
canUndo: boolean;
|
canUndo: boolean;
|
||||||
|
|||||||
@@ -6,11 +6,15 @@ import {
|
|||||||
outlineColor,
|
outlineColor,
|
||||||
} from "./WorksheetCanvas/constants";
|
} from "./WorksheetCanvas/constants";
|
||||||
import WorksheetCanvas from "./WorksheetCanvas/worksheetCanvas";
|
import WorksheetCanvas from "./WorksheetCanvas/worksheetCanvas";
|
||||||
|
import {
|
||||||
|
FORMULA_BAR_HEIGH,
|
||||||
|
NAVIGATION_HEIGH,
|
||||||
|
TOOLBAR_HEIGH,
|
||||||
|
} from "./constants";
|
||||||
import Editor from "./editor/editor";
|
import Editor from "./editor/editor";
|
||||||
import type { Cell } from "./types";
|
import type { Cell } from "./types";
|
||||||
import usePointer from "./usePointer";
|
import usePointer from "./usePointer";
|
||||||
import { AreaType, type WorkbookState } from "./workbookState";
|
import { AreaType, type WorkbookState } from "./workbookState";
|
||||||
import { FORMULA_BAR_HEIGH, NAVIGATION_HEIGH, TOOLBAR_HEIGH } from "./constants";
|
|
||||||
|
|
||||||
function useWindowSize() {
|
function useWindowSize() {
|
||||||
const [size, setSize] = useState([0, 0]);
|
const [size, setSize] = useState([0, 0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user