refactor: split hooks types and utils by domain

This commit is contained in:
Tom Boullay
2026-04-30 11:49:18 +02:00
parent 9ac5844182
commit b1187b68ae
65 changed files with 83 additions and 84 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import {
Save,
Undo2,
} from "lucide-react";
import type { MapNode, TransformMode } from "@/types/editor";
import type { MapNode, TransformMode } from "@/types/editor/editor";
interface EditorControlsProps {
transformMode: TransformMode;
+1 -1
View File
@@ -3,7 +3,7 @@ import { Grid, TransformControls, useGLTF } from "@react-three/drei";
import type { ThreeEvent } from "@react-three/fiber";
import * as THREE from "three";
import type { SceneData, MapNode, TransformMode } from "@/types/editor";
import type { SceneData, MapNode, TransformMode } from "@/types/editor/editor";
interface EditorMapProps {
sceneData: SceneData;
+1 -1
View File
@@ -2,7 +2,7 @@ import { useEffect } from "react";
import { OrbitControls } from "@react-three/drei";
import { EditorMap } from "@/components/editor/scene/EditorMap";
import { FlyController } from "@/controls/editor/FlyController";
import type { MapNode, TransformMode, SceneData } from "@/types/editor";
import type { MapNode, TransformMode, SceneData } from "@/types/editor/editor";
interface EditorSceneProps {
sceneData: SceneData;