mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
Reorganise components
This commit is contained in:
@@ -10,8 +10,8 @@ import "leaflet/dist/leaflet.css";
|
|||||||
import { useFormContext, useWatch } from "react-hook-form";
|
import { useFormContext, useWatch } from "react-hook-form";
|
||||||
import { MapContainer, Marker, TileLayer } from "react-leaflet";
|
import { MapContainer, Marker, TileLayer } from "react-leaflet";
|
||||||
|
|
||||||
import MapEvents from "@/app/[locale]/components/MapEvents";
|
|
||||||
import { mapBoundsAtom } from "@/app/atoms";
|
import { mapBoundsAtom } from "@/app/atoms";
|
||||||
|
import MapEvents from "@/components/MapEvents";
|
||||||
|
|
||||||
const center: LatLngLiteral = { lat: 47.0844, lng: 2.3964 };
|
const center: LatLngLiteral = { lat: 47.0844, lng: 2.3964 };
|
||||||
|
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ import dynamic from "next/dynamic";
|
|||||||
import { FormProvider, useForm } from "react-hook-form";
|
import { FormProvider, useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { clearMessage } from "@/app/[locale]/components/InfoMessage";
|
import { clearMessage } from "@/components/InfoMessage";
|
||||||
import InfoMessage from "@/app/[locale]/components/InfoMessage";
|
import InfoMessage from "@/components/InfoMessage";
|
||||||
import LoadingMap from "@/app/[locale]/components/LoadingMap";
|
import LoadingMap from "@/components/LoadingMap";
|
||||||
import { DateField } from "@/app/[locale]/components/form/DateField";
|
import { DateField } from "@/components/form/DateField";
|
||||||
import { SelectField } from "@/app/[locale]/components/form/SelectField";
|
import { SelectField } from "@/components/form/SelectField";
|
||||||
import { SwitchField } from "@/app/[locale]/components/form/SwitchField";
|
import { SwitchField } from "@/components/form/SwitchField";
|
||||||
import { TextAreaField } from "@/app/[locale]/components/form/TextAreaField";
|
import { TextAreaField } from "@/components/form/TextAreaField";
|
||||||
import { TextField } from "@/app/[locale]/components/form/TextField";
|
import { TextField } from "@/components/form/TextField";
|
||||||
import { addTournamentSchema } from "@/schemas";
|
import { addTournamentSchema } from "@/schemas";
|
||||||
import { TimeControl } from "@/types";
|
import { TimeControl } from "@/types";
|
||||||
import { trpc } from "@/utils/trpc";
|
import { trpc } from "@/utils/trpc";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useTranslations } from "next-intl";
|
|||||||
import Link from "next-intl/link";
|
import Link from "next-intl/link";
|
||||||
import { FaGithub, FaRegEnvelope } from "react-icons/fa";
|
import { FaGithub, FaRegEnvelope } from "react-icons/fa";
|
||||||
|
|
||||||
import ThemeSwitcher from "@/app/[locale]/components/ThemeSwitcher";
|
import ThemeSwitcher from "./ThemeSwitcher";
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
const t = useTranslations("Footer");
|
const t = useTranslations("Footer");
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useState } from "react";
|
|||||||
|
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
import InfoMessage from "@/app/[locale]/components/InfoMessage";
|
import InfoMessage from "@/components/InfoMessage";
|
||||||
import { handleEmailSubmit } from "@/handlers/formHandlers";
|
import { handleEmailSubmit } from "@/handlers/formHandlers";
|
||||||
import useContactForm from "@/hooks/useContactForm";
|
import useContactForm from "@/hooks/useContactForm";
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { FaAngleDoubleDown } from "react-icons/fa";
|
|||||||
import { LayerGroup, MapContainer, TileLayer } from "react-leaflet";
|
import { LayerGroup, MapContainer, TileLayer } from "react-leaflet";
|
||||||
import MarkerClusterGroup from "react-leaflet-cluster";
|
import MarkerClusterGroup from "react-leaflet-cluster";
|
||||||
|
|
||||||
import MapEvents from "@/app/[locale]/components/MapEvents";
|
|
||||||
import {
|
import {
|
||||||
debouncedHoveredListTournamentIdAtom,
|
debouncedHoveredListTournamentIdAtom,
|
||||||
filteredTournamentsByTimeControlAtom,
|
filteredTournamentsByTimeControlAtom,
|
||||||
@@ -21,6 +20,7 @@ import {
|
|||||||
normsOnlyAtom,
|
normsOnlyAtom,
|
||||||
} from "@/app/atoms";
|
} from "@/app/atoms";
|
||||||
import { TimeControlColours } from "@/app/constants";
|
import { TimeControlColours } from "@/app/constants";
|
||||||
|
import MapEvents from "@/components/MapEvents";
|
||||||
import { generatePieSVG } from "@/lib/pie";
|
import { generatePieSVG } from "@/lib/pie";
|
||||||
import { TimeControl } from "@/types";
|
import { TimeControl } from "@/types";
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
import { useHydrateAtoms } from "jotai/utils";
|
import { useHydrateAtoms } from "jotai/utils";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
|
|
||||||
import LoadingMap from "@/app/[locale]/components/LoadingMap";
|
|
||||||
import { tournamentsAtom } from "@/app/atoms";
|
import { tournamentsAtom } from "@/app/atoms";
|
||||||
|
import LoadingMap from "@/components/LoadingMap";
|
||||||
import { Tournament } from "@/types";
|
import { Tournament } from "@/types";
|
||||||
|
|
||||||
import TournamentTable from "./TournamentTable";
|
import TournamentTable from "./TournamentTable";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Dispatch, FormEvent, SetStateAction } from "react";
|
|||||||
|
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
import { clearMessage } from "@/app/[locale]/components/InfoMessage";
|
import { clearMessage } from "@/components/InfoMessage";
|
||||||
import sendMail from "@/lib/sendMail";
|
import sendMail from "@/lib/sendMail";
|
||||||
import { ResponseMessage } from "@/types";
|
import { ResponseMessage } from "@/types";
|
||||||
import { errorLog } from "@/utils/logger";
|
import { errorLog } from "@/utils/logger";
|
||||||
|
|||||||
Reference in New Issue
Block a user