From 8c802dcabf881b1f2ab850e1c1d2382b901d52f3 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Tue, 9 Sep 2025 15:07:23 +0200 Subject: [PATCH] refactor: update Test component to simplify button actions and integrate toast notifications --- apps/infoalloggi/src/pages/_app.tsx | 6 +++++- apps/infoalloggi/src/pages/test.tsx | 29 +++-------------------------- 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/apps/infoalloggi/src/pages/_app.tsx b/apps/infoalloggi/src/pages/_app.tsx index ca2b318..d548d20 100644 --- a/apps/infoalloggi/src/pages/_app.tsx +++ b/apps/infoalloggi/src/pages/_app.tsx @@ -72,7 +72,11 @@ const MyApp = ({ } `} - + {!router.pathname.startsWith("/annunci") && ( )} diff --git a/apps/infoalloggi/src/pages/test.tsx b/apps/infoalloggi/src/pages/test.tsx index 8bdefc7..73de635 100644 --- a/apps/infoalloggi/src/pages/test.tsx +++ b/apps/infoalloggi/src/pages/test.tsx @@ -1,35 +1,12 @@ import type { NextPage } from "next"; +import toast from "react-hot-toast"; import { Button } from "~/components/ui/button"; -import { api } from "~/utils/api"; const Test: NextPage = () => { - const { mutate } = api.test.testErr.useMutation(); return (
- - - - -
);