feat: ESLint 정리 및 전체 코드 품질 개선
- eslint.config.mjs 규칙 강화 및 정리 - 전역 unused import/변수 제거 (312개 파일) - next.config.ts, middleware, proxy route 개선 - CopyableCell molecule 추가 - 회계/결재/HR/생산/건설/품질/영업 등 전 도메인 lint 정리 - IntegratedListTemplateV2, DataTable, MobileCard 등 공통 컴포넌트 개선 - execute-server-action 에러 핸들링 보강
This commit is contained in:
@@ -201,7 +201,7 @@ export function PriceDistributionDetail({ id, mode: propMode }: Props) {
|
||||
};
|
||||
|
||||
// 상태 뱃지
|
||||
const renderStatusBadge = (status: DistributionStatus) => {
|
||||
const _renderStatusBadge = (status: DistributionStatus) => {
|
||||
const style = DISTRIBUTION_STATUS_STYLES[status];
|
||||
const label = DISTRIBUTION_STATUS_LABELS[status];
|
||||
return (
|
||||
|
||||
@@ -50,7 +50,7 @@ import {
|
||||
export function PriceDistributionList() {
|
||||
const router = useRouter();
|
||||
const [data, setData] = useState<PriceDistributionListItem[]>([]);
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [_isLoading, setIsLoading] = useState(true);
|
||||
const [showRegisterDialog, setShowRegisterDialog] = useState(false);
|
||||
const [isRegistering, setIsRegistering] = useState(false);
|
||||
const pageSize = 20;
|
||||
@@ -150,11 +150,11 @@ export function PriceDistributionList() {
|
||||
// 테이블 컬럼
|
||||
const tableColumns: TableColumn[] = useMemo(() => [
|
||||
{ key: 'rowNumber', label: '번호', className: 'w-[60px] text-center' },
|
||||
{ key: 'distributionNo', label: '단가배포번호', className: 'min-w-[120px]' },
|
||||
{ key: 'distributionName', label: '단가배포명', className: 'min-w-[150px]' },
|
||||
{ key: 'distributionNo', label: '단가배포번호', className: 'min-w-[120px]', copyable: true },
|
||||
{ key: 'distributionName', label: '단가배포명', className: 'min-w-[150px]', copyable: true },
|
||||
{ key: 'status', label: '상태', className: 'min-w-[100px]' },
|
||||
{ key: 'author', label: '작성자', className: 'min-w-[100px]' },
|
||||
{ key: 'createdAt', label: '등록일', className: 'min-w-[120px]' },
|
||||
{ key: 'author', label: '작성자', className: 'min-w-[100px]', copyable: true },
|
||||
{ key: 'createdAt', label: '등록일', className: 'min-w-[120px]', copyable: true },
|
||||
], []);
|
||||
|
||||
// 테이블 행 렌더링
|
||||
|
||||
Reference in New Issue
Block a user