added linting
added linting
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -13,7 +13,7 @@ type LocationContextType = {
|
||||
};
|
||||
|
||||
export const LocationContext = createContext<LocationContextType | undefined>(
|
||||
undefined
|
||||
undefined,
|
||||
);
|
||||
|
||||
export default function LocationContextProvider({
|
||||
Reference in New Issue
Block a user