diff --git a/app/admin/page.tsx b/app/admin/page.tsx index b30e48e..90e8588 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from "react"; import { useSession } from "next-auth/react"; -import { LocationResponse } from "@/types/location"; +import { LocationResponse } from "@/lib/types"; interface DeviceInfo { id: string; diff --git a/app/api/locations/route.ts b/app/api/locations/route.ts index a016d6d..08fadec 100644 --- a/app/api/locations/route.ts +++ b/app/api/locations/route.ts @@ -1,5 +1,5 @@ import { NextRequest, NextResponse } from "next/server"; -import type { LocationResponse } from "@/types/location"; +import type { LocationResponse } from "@/lib/types"; import { locationDb, Location, deviceDb, userDb } from "@/lib/db"; import { auth } from "@/lib/auth"; diff --git a/components/map/MapView.tsx b/components/map/MapView.tsx index d0bfc7a..96696be 100644 --- a/components/map/MapView.tsx +++ b/components/map/MapView.tsx @@ -1,7 +1,7 @@ "use client"; import { useEffect, useState, useRef } from "react"; -import { Location, LocationResponse } from "@/types/location"; +import { Location, LocationResponse } from "@/lib/types"; import { getDevice, DEFAULT_DEVICE } from "@/lib/devices"; import L from "leaflet"; import { diff --git a/lib/devices.ts b/lib/devices.ts index b265c16..5ba9b7d 100644 --- a/lib/devices.ts +++ b/lib/devices.ts @@ -1,4 +1,4 @@ -import { Device } from '@/types/location'; +import { Device } from '@/lib/types'; export const DEVICES: Record = { '10': { id: '10', name: 'Device A', color: '#e74c3c' }, diff --git a/types/location.ts b/lib/types.ts similarity index 100% rename from types/location.ts rename to lib/types.ts