Skip to content

Commit

Permalink
style: order imports
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Aug 31, 2024
1 parent b109129 commit d7c530a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/CalculateButton/CalculateButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import { useBudget } from "../../context/BudgetContext";
import { useConfig } from "../../context/ConfigContext";
import { useDB } from "../../hooks/useDB";
import "./CalculateButton.css";
import type { BudgetItem } from "../../guitos/domain/budgetItem";
import type {
CalculationHistoryItem,
ItemOperation,
} from "../../guitos/domain/calculationHistoryItem";
import type { BudgetItem } from "../../guitos/domain/budgetItem";

interface CalculateButtonProps {
itemForm: BudgetItem;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemForm/ItemFormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { useDB } from "../../hooks/useDB";
import { calc, parseLocaleNumber, roundBig } from "../../utils";
import { CalculateButton } from "../CalculateButton/CalculateButton";
import "./ItemFormGroup.css";
import { Budget } from "../../guitos/domain/budget";
import type { BudgetItem } from "../../guitos/domain/budgetItem";
import type { ItemOperation } from "../../guitos/domain/calculationHistoryItem";
import { Budget } from "../../guitos/domain/budget";

interface ItemFormProps {
itemForm: BudgetItem;
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavBar/NavBarImpExp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
import { useHotkeys } from "react-hotkeys-hook";
import { BsArrowDownUp, BsUpload } from "react-icons/bs";
import { useBudget } from "../../context/BudgetContext";
import { useDB } from "../../hooks/useDB";
import { Budget } from "../../guitos/domain/budget";
import { useDB } from "../../hooks/useDB";

interface NavBarImpExpProps {
expanded: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableCard/TableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import { useConfig } from "../../context/ConfigContext";
import { intlFormat, roundBig } from "../../utils";
import { ItemFormGroup } from "../ItemForm/ItemFormGroup";
import "./TableCard.css";
import { Budget } from "../../guitos/domain/budget";
import { BudgetItem } from "../../guitos/domain/budgetItem";
import type { Expenses } from "../../guitos/domain/expenses";
import type { Incomes } from "../../guitos/domain/incomes";
import { Budget } from "../../guitos/domain/budget";

interface TableCardProps {
header: "Revenue" | "Expenses";
Expand Down
10 changes: 5 additions & 5 deletions src/guitos/domain/budget.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Big from "big.js";
import { immerable } from "immer";
import { roundBig } from "../../utils";
import { BudgetItem } from "./budgetItem";
import type { CsvItem } from "./csvItem";
import type { Expenses } from "./expenses";
import type { Incomes } from "./incomes";
import type { Stats } from "./stats";
import { Uuid } from "./uuid";
import { BudgetItem } from "./budgetItem";
import type { CsvItem } from "./csvItem";
import { roundBig } from "../../utils";
import Big from "big.js";
import { immerable } from "immer";

export class Budget {
id: Uuid;
Expand Down
2 changes: 1 addition & 1 deletion src/guitos/domain/stats.mother.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Stats } from "./stats";
import { ObjectMother } from "./objectMother.mother";
import { Stats } from "./stats";

// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
export class StatsMother {
Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { afterEach, beforeEach, expect, vi } from "vitest";
import * as AppBudgetContext from "./context/BudgetContext";
import * as AppConfigContext from "./context/ConfigContext";
import * as AppGeneralContext from "./context/GeneralContext";
import { Uuid } from "./guitos/domain/uuid";
import { Budget } from "./guitos/domain/budget";
import { BudgetItem } from "./guitos/domain/budgetItem";
import { Uuid } from "./guitos/domain/uuid";

window.crypto.randomUUID = randomUUID;
global.URL.createObjectURL = vi.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Papa from "papaparse";
import { expect, test } from "vitest";
import type { FilteredItem } from "./components/ChartsPage/ChartsPage";
import { Budget } from "./guitos/domain/budget";
import { BudgetItem } from "./guitos/domain/budgetItem";
import type { ItemOperation } from "./guitos/domain/calculationHistoryItem";
import { Uuid } from "./guitos/domain/uuid";
import { chromeLocalesList } from "./lists/chromeLocalesList";
Expand Down Expand Up @@ -32,7 +33,6 @@ import {
parseLocaleNumber,
roundBig,
} from "./utils";
import { BudgetItem } from "./guitos/domain/budgetItem";

test("round", () => {
expect(roundBig(Big(123.123123123), 5)).eq(123.12312);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import type { MutableRefObject } from "react";
import type { NavigateFunction } from "react-router-dom";
import type { FilteredItem } from "./components/ChartsPage/ChartsPage";
import type { SearchOption } from "./components/NavBar/NavBar";
import type { Budget } from "./guitos/domain/budget";
import type { ItemOperation } from "./guitos/domain/calculationHistoryItem";
import { currenciesMap } from "./lists/currenciesMap";
import type { Budget } from "./guitos/domain/budget";

export const userLang = navigator.language;

Expand Down

0 comments on commit d7c530a

Please sign in to comment.