import grouping and sorting with Prettier plugin

This commit is contained in:
Timothy Armes
2023-09-11 09:09:34 +02:00
parent 4984639f23
commit 7111f000e5
43 changed files with 589 additions and 210 deletions
+8 -8
View File
@@ -1,18 +1,18 @@
"use client";
import { MapProps } from "@/types";
import { useMemo, useRef, ChangeEvent } from "react";
import { useTranslations } from "next-intl";
import { useSetAtom } from "jotai";
import { mapBoundsAtom } from "@/app/atoms";
import { ChangeEvent, useMemo, useRef } from "react";
import { useSetAtom } from "jotai";
import L from "leaflet";
import { MapContainer, TileLayer, Marker } from "react-leaflet";
import "leaflet/dist/leaflet.css";
import "leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css";
import "leaflet-defaulticon-compatibility";
import "leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css";
import "leaflet/dist/leaflet.css";
import { useTranslations } from "next-intl";
import { MapContainer, Marker, TileLayer } from "react-leaflet";
import MapEvents from "@/app/[lang]/components/MapEvents";
import { mapBoundsAtom } from "@/app/atoms";
import { MapProps } from "@/types";
const Map = ({ position, setPosition, center }: MapProps) => {
const t = useTranslations("Map");
@@ -1,17 +1,19 @@
"use client";
import dynamic from "next/dynamic";
import { useState } from "react";
import { useTranslations } from "next-intl";
import { useAtomValue } from "jotai";
import { franceCenterAtom } from "@/app/atoms";
import useTournamentForm from "@/hooks/useTournamentForm";
import { useTranslations } from "next-intl";
import dynamic from "next/dynamic";
import InfoMessage from "@/app/[lang]/components/InfoMessage";
import {
handleTournamentSubmit,
handleClearTournamentForm,
} from "@/handlers/formHandlers";
import LoadingMap from "@/app/[lang]/components/LoadingMap";
import { franceCenterAtom } from "@/app/atoms";
import {
handleClearTournamentForm,
handleTournamentSubmit,
} from "@/handlers/formHandlers";
import useTournamentForm from "@/hooks/useTournamentForm";
const Map = dynamic(() => import("./Map"), {
ssr: false,