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

33 lines
936 B
TypeScript
Raw Normal View History

2025-12-08 16:01:59 +09:00
"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);
}