added linting
added linting
This commit is contained in:
@@ -14,7 +14,7 @@ export default function IdComponent({ updateIdList }: Props) {
|
||||
};
|
||||
useEffect(() => {
|
||||
updateIdList([...idSet]);
|
||||
}, [idSet]);
|
||||
}, [idSet, updateIdList]);
|
||||
return (
|
||||
<div className="flex justify-center">
|
||||
<div className="flex flex-col gap-2">
|
||||
@@ -37,7 +37,7 @@ function FixedId({ cid, removeCid }: FixedIdProps) {
|
||||
<div className="flex gap-2">
|
||||
<input type="text" className="border-2" disabled value={cid} />
|
||||
<button
|
||||
className="bg-red-300 p-2 rounded-md"
|
||||
className="rounded-md bg-red-300 p-2"
|
||||
onClick={() => removeCid(cid)}
|
||||
>
|
||||
ลบ
|
||||
@@ -61,7 +61,7 @@ function SingleIdComponent({ onValidId }: SingleIdProps) {
|
||||
|
||||
setCid("");
|
||||
}
|
||||
}, [cid]);
|
||||
}, [cid, onValidId]);
|
||||
return (
|
||||
<div className="flex gap-2">
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user