Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/components/core/left-panel/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { useEffect } from "react"
import Image from "next/image"
import TrawlWatchLogo from "@/public/trawlwatch.svg"
import { ChartBarIcon } from "@heroicons/react/24/outline"
import { motion, useAnimationControls } from "framer-motion"
import { ChevronRightIcon } from "lucide-react"
import { motion, useAnimationControls } from "motion/react"
import { useShallow } from "zustand/react/shallow"

import { useLoaderStore } from "@/libs/stores/loader-store"
Expand All @@ -14,8 +14,8 @@ import NavigationLink from "@/components/ui/navigation-link"
import { VesselFinderDemo } from "@/components/core/command/vessel-finder"

import Spinner from "../../ui/custom/spinner"
import TrackedVesselsPanel from "./tracked-vessel/tracked-vessels-panel"
import PartnerCredits from "../map/partner-credits"
import TrackedVesselsPanel from "./tracked-vessel/tracked-vessels-panel"

const containerVariants = {
close: {
Expand Down Expand Up @@ -93,7 +93,7 @@ export default function LeftPanel() {
initial="close"
className="absolute left-0 top-0 z-10 flex max-h-screen flex-col gap-3 rounded-br-lg bg-color-3 shadow-lg"
>
<div className="flex w-full flex-row place-items-center p-5 gap-5">
<div className="flex w-full flex-row place-items-center gap-5 p-5">
<a href="/dashboard" className="flex items-center gap-3">
<Image
src={TrawlWatchLogo}
Expand Down
5 changes: 0 additions & 5 deletions frontend/components/core/map/layers/use-zones-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ export const useZonesLayer = ({
? true
: displayedZones.includes(ZoneCategory.FISHING_COASTAL_WATERS)

console.log("zones", zones)
console.log("isAmpDisplayed", isAmpDisplayed)
console.log("isTerritorialDisplayed", isTerritorialDisplayed)
console.log("isFishingDisplayed", isFishingDisplayed)

const ampMultiZones = useMemo(() => {
const filteredZones = isAmpDisplayed
? zones
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/core/map/position-preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"

import { AnimatePresence, motion } from "framer-motion"
import { AnimatePresence, motion } from "motion/react"

import { useMapStore } from "@/libs/stores/map-store"
import PreviewCard from "@/components/core/map/preview-card"
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ui/custom/sidebar-expander.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react"
import { motion, useAnimationControls } from "framer-motion"
import { ChevronUpIcon } from "lucide-react"
import { motion, useAnimationControls } from "motion/react"

function SidebarExpanderHeader({
disabled = false,
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"country-iso-3-to-2": "^1.1.1",
"date-fns": "^3.6.0",
"deck.gl": "^9.0.36",
"framer-motion": "^11.1.3",
"jotai": "^2.8.0",
"jotai-zustand": "^0.3.0",
"lucide-react": "^0.371.0",
"maplibre-gl": "^4.1.1",
"motion": "^12.5.0",
"next": "^13.5.7",
"next-themes": "^0.2.1",
"react": "^18.2.0",
Expand Down Expand Up @@ -74,4 +74,4 @@
"tailwindcss": "^3.3.2",
"typescript": "^4.9.5"
}
}
}
1 change: 0 additions & 1 deletion frontend/services/backend-rest-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export async function getZoneDetails(
const url = `${BASE_URL}/metrics/zones/${zoneId}/visiting-time-by-vessel?start_at=${startAt}&end_at=${endAt}&order=DESC&limit=10`
console.log(`GET ${url}`)
const response = await axios.get<ZoneVesselMetrics[]>(url)
console.log(response)
return response
}

Expand Down
3 changes: 1 addition & 2 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand All @@ -10,11 +11,9 @@
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
// "moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsxImportSource": "react",
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
Expand Down
Loading