From 2707aa48bcd6e4235f79ae3db1a07d9ac8dfb751 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Fri, 11 Jul 2025 23:50:03 +0200 Subject: [PATCH] Remove unused `showInfoToast` import and align `CustomersPage` with `useCallback` dependencies --- internal_frontend/app/customers/page.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal_frontend/app/customers/page.tsx b/internal_frontend/app/customers/page.tsx index 81711ca..f34691c 100644 --- a/internal_frontend/app/customers/page.tsx +++ b/internal_frontend/app/customers/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {useState, useEffect, useMemo} from "react"; +import {useState, useEffect, useMemo, useCallback} from "react"; import {Button} from "@/components/ui/button"; import {Input} from "@/components/ui/input"; import {Card, CardContent} from "@/components/ui/card"; @@ -25,8 +25,7 @@ import {NewCustomerModal} from "@/components/customers/modal/NewCustomerModal"; import {Customer} from "@/services/customers/entities/customer"; import Link from "next/link"; import {useErrorHandler} from "@/components/error-boundary"; -import {showError, showInfoToast} from "@/lib/ui/showToast"; -import {useCallback} from "react"; +import {showError} from "@/lib/ui/showToast"; export default function CustomersPage() { const [customers, setCustomers] = useState([]);