ERP-node/frontend/lib/registry/components/tax-invoice-list/TaxInvoiceListRenderer.tsx

33 lines
936 B
TypeScript

"use client";
import React from "react";
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
import { TaxInvoiceListDefinition } from "./index";
import { TaxInvoiceListComponent } from "./TaxInvoiceListComponent";
/**
* 세금계산서 목록 렌더러
* 자동 등록 시스템을 사용하여 컴포넌트를 레지스트리에 등록
*/
export class TaxInvoiceListRenderer extends AutoRegisteringComponentRenderer {
static componentDefinition = TaxInvoiceListDefinition;
render(): React.ReactElement {
return <TaxInvoiceListComponent {...this.props} />;
}
}
// 자동 등록 실행
TaxInvoiceListRenderer.registerSelf();
// 강제 등록 (디버깅용)
if (typeof window !== "undefined") {
setTimeout(() => {
try {
TaxInvoiceListRenderer.registerSelf();
} catch (error) {
console.error("TaxInvoiceList 강제 등록 실패:", error);
}
}, 1000);
}