ソースを参照

eslint代码检查结果修改

fogwind 2 日 前
コミット
7ca3ee8602

+ 1 - 1
src/components/theme/filters/SortOrder.tsx

@@ -20,7 +20,7 @@ import { SortIcon } from "@components/common/icons/SortIcon";
 const SortOrder: FC<{
   sortOrders: SortOrderTypes[];
   title: string;
-}> = ({ sortOrders, title }) => {
+}> = ({ sortOrders }) => {
   const searchParams = useSearchParams();
   const pathname = usePathname();
   const router = useRouter();

+ 1 - 1
src/utils/hooks/useGuestCartToken.ts

@@ -1,6 +1,6 @@
 "use client";
 
-import { useEffect, useState, useRef } from "react";
+import { useState, useRef } from "react";
 import { fetchHandler } from "../fetch-handler";
 import { GUEST_CART_ID, GUEST_CART_TOKEN, IS_GUEST } from "@/utils/constants";
 import { encodeJWT, decodeJWT } from "@/utils/jwt-cookie";