added linting

added linting
This commit is contained in:
2024-05-16 16:59:25 +07:00
parent d125687536
commit 5c4abf24bb
15 changed files with 1759 additions and 71 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import { useContext, useEffect, useState } from "react";
import { LocationContext } from "../locationContenxt";
import { LocationContext } from "../locationContext";
type Props = {
provinces: Province[];
@@ -43,7 +43,7 @@ export default function LocationSelector({ provinces }: Props) {
locationContext.zone[1](amphurId);
locationContext.province[1](provinceId);
}, [amphurId]);
}, [amphurId, locationContext, provinceId]);
return (
<div className="flex flex-col gap-2">
<div className="flex gap-2">

View File

@@ -13,7 +13,7 @@ type LocationContextType = {
};
export const LocationContext = createContext<LocationContextType | undefined>(
undefined
undefined,
);
export default function LocationContextProvider({