Require logon for Zone pages

This commit is contained in:
Timothy Armes
2024-04-11 13:31:21 +02:00
parent 9e9f5fd975
commit 50943685c0
10 changed files with 155 additions and 90 deletions
@@ -2,7 +2,7 @@
import { useState } from "react";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useTranslations } from "next-intl";
import { useParams } from "next/navigation";
@@ -17,7 +17,6 @@ const EditZone = () => {
const t = useTranslations("Zones");
const router = useRouter();
const params = useParams();
const queryClient = useQueryClient();
const [responseMessage, setResponseMessage] = useState({
isSuccessful: false,
@@ -75,7 +74,7 @@ const EditZone = () => {
};
return (
<div className="mx-auto max-w-screen-md px-4 pb-20 pt-8 lg:pt-16">
<div>
<h2
className="mb-4 text-center text-4xl font-extrabold tracking-tight text-gray-900 dark:text-white"
data-test="header2"