[st] chore: eslint 해결

This commit is contained in:
2026-08-20 11:48:18 +09:00
parent 725976b5c0
commit 927bb7cb3a
185 changed files with 1195 additions and 1024 deletions
+45 -21
View File
@@ -155,13 +155,18 @@ const SearchForm = (props: SearchFormProps = {}) => {
prev.sido
? prev
: {
...prev,
sido: first.sido,
gugun: "",
bsnmCd: first.bsnmCd,
},
...prev,
sido: first.sido,
gugun: "",
bsnmCd: first.bsnmCd,
},
);
}, [sidoList, props.defaultValues?.sido, props.defaultRegionAll, mergedProps.sido]);
}, [
sidoList,
props.defaultValues?.sido,
props.defaultRegionAll,
mergedProps.sido,
]);
const sggKey: [string, string, string, string] | null =
values.sido && values.sido !== "ALL"
@@ -179,12 +184,12 @@ const SearchForm = (props: SearchFormProps = {}) => {
onSuccess: (data) => {
if (data.status !== "success") {
alert(`시군구 목록을 불러오는데 실패했습니다.
새로고침 후 다시 시도해주세요.`);
새로고침 후 다시 시도해주세요.`);
}
},
onError: () => {
alert(`시군구 목록을 불러오는데 실패했습니다.
새로고침 후 다시 시도해주세요.`);
새로고침 후 다시 시도해주세요.`);
},
},
);
@@ -230,7 +235,8 @@ const SearchForm = (props: SearchFormProps = {}) => {
const selectedBsnm =
value === "ALL"
? ""
: sidoList?.data?.sidoList?.find((v) => v.sido === value)?.bsnmCd || "";
: sidoList?.data?.sidoList?.find((v) => v.sido === value)
?.bsnmCd || "";
setValues((prev) => ({
...prev,
sido: value,
@@ -244,7 +250,7 @@ const SearchForm = (props: SearchFormProps = {}) => {
const selectedBsnm =
value === "ALL"
? sidoList?.data?.sidoList?.find((v) => v.sido === values.sido)
?.bsnmCd || ""
?.bsnmCd || ""
: listForBsnm.find((v) => v.gugun === value)?.bsnmCd || "";
setValues((prev) => ({
@@ -397,16 +403,23 @@ const SearchForm = (props: SearchFormProps = {}) => {
<SelectValue placeholder="전체"></SelectValue>
</SelectTrigger>
<SelectContent>
<SelectItem value='ALL'>전체</SelectItem>
<SelectItem value='500톤이상'>500톤이상</SelectItem>
<SelectItem value='500톤미만'>500톤미만</SelectItem>
<SelectItem value="ALL">전체</SelectItem>
<SelectItem value="500톤이상">
500톤이상
</SelectItem>
<SelectItem value="500톤미만">
500톤미만
</SelectItem>
</SelectContent>
</Select>
</div>
)}
{mergedProps.isDetail && (
<div className="flex items-center gap-2">
<Label className="text-label cursor-pointer" htmlFor="isDetail">
<Label
className="cursor-pointer text-label"
htmlFor="isDetail"
>
세부 데이터 포함
</Label>
<Checkbox
@@ -423,7 +436,10 @@ const SearchForm = (props: SearchFormProps = {}) => {
)}
{mergedProps.isSummary && (
<div className="flex items-center gap-2">
<Label className="text-label cursor-pointer" title="시·군·구 및 읍·면·동 변경에 따라 인구 및 관로 등 공표된 통계수치와 일부 상이할 수 있으니 유의 바랍니다.">
<Label
className="cursor-pointer text-label"
title="시·군·구 및 읍·면·동 변경에 따라 인구 및 관로 등 공표된 통계수치와 일부 상이할 수 있으니 유의 바랍니다."
>
<i className="diveicon di-exclamation-circle mr-1" />
요약표 포함
</Label>
@@ -437,11 +453,17 @@ const SearchForm = (props: SearchFormProps = {}) => {
<SelectValue placeholder="선택 안함"></SelectValue>
</SelectTrigger>
<SelectContent>
<SelectItem value="ALL">선택 안함</SelectItem>
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((i) => (
<SelectItem value={i.toString()} key={i.toString()}>{`${i}개년`}</SelectItem>
))
}
<SelectItem value="ALL">
선택 안함
</SelectItem>
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(
(i) => (
<SelectItem
value={i.toString()}
key={i.toString()}
>{`${i}개년`}</SelectItem>
),
)}
</SelectContent>
</Select>
</div>
@@ -476,7 +498,9 @@ const SearchForm = (props: SearchFormProps = {}) => {
</Button>
)}
<Button className="h-[3.2rem] w-[96px]" type="submit">
{props.searchButtonText ? props.searchButtonText : '조회'}
{props.searchButtonText
? props.searchButtonText
: "조회"}
</Button>
</div>
</div>