Skip to content

Commit

Permalink
reorganize entities and adopt no-default-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazuh committed Feb 24, 2024
1 parent 66f58b3 commit 4a2645c
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect } from "react";
import { Switch, Router, Route } from "wouter";
import useClientSession from "./hooks/useClientSession";
import { useClientSession } from "./hooks/useClientSession";
import { ProjectsManagementPage } from "./features/projects-management/ProjectsManagementPage";
import { Button } from "./components/ui/button";
import { ErrorPageTemplate } from "./components/template/ErrorPage";
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/features/project-workspace/ProjectWorkspacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "@fortawesome/free-solid-svg-icons";
import { AppPageTemplate } from "@/components/template/AppPageTemplate";
import { Anchor, Title } from "@/components/ui/typography";
import { ProjectRequestSpec } from "@/entities/management";
import { ProjectRequestSpec } from "@/entities/project-entities";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/features/project-workspace/RequestsSpecsContext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Basic definitions for `RequestsSpecsContextProvider` and its access hook.
*/
import { ProjectRequestSpec } from "@/entities/management";
import { ProjectRequestSpec } from "@/entities/project-entities";
import { createContext, useContext } from "react";

export interface RequestsSpecsContextValue {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
import { ReactNode, useCallback, useEffect, useState } from "react";
import tap from "lodash/tap";
import { ProjectRequestSpec } from "@/entities/management";
import { ProjectRequestSpec } from "@/entities/project-entities";
import {
retrieveProject,
createRequestSpec,
Expand Down
2 changes: 1 addition & 1 deletion src/features/project-workspace/opfs-project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
Project,
ProjectRequestSpec,
ProjectRequestSpecHeader,
} from "@/entities/management";
} from "@/entities/project-entities";
import { persistProject } from "@/services/opfs-projects-shared-internals";
import { retrieveProject } from "./opfs-project-service";

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useClientSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface UseClientSessionResult {
* Manage client session, assuring that only one per tab is active,
* so it doesn't have to handle conflicts for Private File System access.
*/
export default function useClientSession(): UseClientSessionResult {
export function useClientSession(): UseClientSessionResult {
const isOfflineModeSupported = isPersistenceSupported();

const [isActive, setActive] = useState(isOfflineModeSupported);
Expand Down
2 changes: 1 addition & 1 deletion src/services/opfs-projects-shared-internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
makeOpfsFileAdapter,
makeOpfsMainDirAdapter,
} from "./origin-private-file-system";
import { Project } from "@/entities/management";
import { Project } from "@/entities/project-entities";

/**
* Retrieve a project from the private file system based on its UUID.
Expand Down

0 comments on commit 4a2645c

Please sign in to comment.